Changeset 3271 in Sophya for trunk/Cosmo/SimLSS/cmvobserv3d.cc


Ignore:
Timestamp:
Jun 20, 2007, 6:50:48 PM (18 years ago)
Author:
cmv
Message:

intro evolution bruit avec redshift cmv 20/06/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/SimLSS/cmvobserv3d.cc

    r3267 r3271  
    3030     <<" -z nz,dz : size along z axis (redshift axis, npix,Mpc)"<<endl
    3131     <<" -Z zref : redshift for the center of the simulation cube"<<endl
    32      <<" -s snoise : gaussian noise sigma in equivalent Msol"<<endl
     32     <<" -s snoise,evol : gaussian noise sigma in equivalent Msol"<<endl
     33     <<"                  if evol>0 noise evolved with distance (def no)"<<endl
    3334     <<" -2 : compute also 2D spectrum (default: no)"<<endl
    3435     <<" -M schmin,schmax,nsch : min,max mass and nb points for schechter HI"<<endl
     
    8081 // *** Niveau de bruit
    8182 double snoise= 0.;   // en equivalent MSol
     83 int isnoise_evol = 0;
    8284
    8385 // *** AGN
     
    125127    break;
    126128  case 's' :
    127     sscanf(optarg,"%lf",&snoise);
     129    sscanf(optarg,"%lf,%d",&snoise,&isnoise_evol);
    128130    break;
    129131  case 'Z' :
     
    169171     <<"), schmax="<<schmax<<" ("<<lschmax<<") Msol"
    170172     <<", schnpt="<<schnpt<<endl;
    171  cout<<"snoise="<<snoise<<" equivalent Msol"<<endl;
     173 cout<<"snoise="<<snoise<<" equivalent Msol, evolution="<<isnoise_evol<<endl;
    172174 if(do_agn)
    173175   cout<<"AGN: <log10(Jy)>="<<lfjy_agn<<" , sigma="<<lsigma_agn
     
    487489
    488490 if(snoise>0.) {
    489    cout<<"\n--- Add noise to HI Flux snoise="<<snoise<<endl;
    490    fluct3d.AddNoise2Real(snoise);
     491   cout<<"\n--- Add noise to HI Flux snoise="<<snoise<<", evolution="<<isnoise_evol<<endl;
     492   fluct3d.AddNoise2Real(snoise,(isnoise_evol>0? true:false));
    491493     nm = fluct3d.MeanSigma2(rm,rs2);
    492494   PrtTim(">>>> End Add noise");
Note: See TracChangeset for help on using the changeset viewer.