Changeset 3196 in Sophya for trunk/Cosmo/SimLSS/cmvobserv3d.cc
- Timestamp:
- Apr 3, 2007, 4:06:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvobserv3d.cc
r3193 r3196 15 15 #include "schechter.h" 16 16 #include "geneutils.h" 17 #include "integfunc.h"18 17 #include "genefluct3d.h" 19 18 … … 32 31 <<" -2 : compute 2D spectrum"<<endl 33 32 <<" -M schmin,schmax,nsch : min,max mass and nb points for schechter HI"<<endl 33 <<" -A <log10(S_agn en Msol)>,sigma : distribution des AGN par pixel"<<endl 34 34 <<" -W : write cube in FITS format"<<endl 35 35 <<" -P : write cube in PPF format"<<endl … … 77 77 double snoise= 0.; // en equivalent MSol 78 78 79 // *** AGN 80 bool do_agn = false; 81 double lmsol_agn=-99., lsigma_agn=0.; // en equivalent MSol 82 79 83 // *** type de generation 80 84 bool computefourier0=false; … … 91 95 92 96 char c; 93 while((c = getopt(narg,arg,"ha0PWV2Gx:y:z:s:Z:M: ")) != -1) {97 while((c = getopt(narg,arg,"ha0PWV2Gx:y:z:s:Z:M:A:")) != -1) { 94 98 switch (c) { 95 99 case 'a' : … … 122 126 case 'M' : 123 127 sscanf(optarg,"%lf,%lf,%d",&schmin,&schmax,&schnpt); 128 break; 129 case 'A' : 130 do_agn = true; 131 sscanf(optarg,"%lf,%lf",&lmsol_agn,&lsigma_agn); 124 132 break; 125 133 case 'V' : … … 153 161 <<", schnpt="<<schnpt<<endl; 154 162 cout<<"snoise="<<snoise<<" equivalent Msol"<<endl; 163 if(do_agn) cout<<"AGN: <log10(Msol)>="<<lmsol_agn<<" , sigma="<<lsigma_agn<<endl; 155 164 156 165 //----------------------------------------------------------------- … … 476 485 } 477 486 487 if(do_agn) { 488 cout<<"\n--- Add AGN: <mass>="<<lmsol_agn<<" , sigma="<<lsigma_agn<<endl; 489 fluct3d.AddAGN(lmsol_agn,lsigma_agn); 490 nm = fluct3d.MeanSigma2(rm,rs2); 491 cout<<"HI mass with AGN: ("<<nm<<") Mean = "<<rm<<", Sigma^2 = " 492 <<rs2<<" -> "<<sqrt(rs2)<<endl; 493 PrtTim(">>>> End Add AGN"); 494 } 495 478 496 if(snoise>0.) { 479 497 cout<<"\n--- Add noise to HI Flux snoise="<<snoise<<endl;
Note:
See TracChangeset
for help on using the changeset viewer.