Changeset 3196 in Sophya for trunk/Cosmo/SimLSS/cmvdefsurv.cc
- Timestamp:
- Apr 3, 2007, 4:06:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvdefsurv.cc
r3193 r3196 11 11 #include "cosmocalc.h" 12 12 #include "geneutils.h" 13 #include "integfunc.h"14 13 #include "schechter.h" 15 14 #include "planckspectra.h" 16 15 17 16 /* --- Check Peterson at al. astro-ph/0606104 v1 18 cmvdefsurv -z 0.0025 -x 1 -U 0.75,0.3,0.7,-1,1 -V 300 -O 400000,6000 - A75 -M 6.156e9 -F 3 -2 1.517 cmvdefsurv -z 0.0025 -x 1 -U 0.75,0.3,0.7,-1,1 -V 300 -O 400000,6000 -N 75 -M 6.156e9 -F 3 -2 1.5 19 18 --- */ 20 19 … … 35 34 <<" -L lobewidth : taille du lobe d\'observation (FWHM) en arcmin (def= 1\')"<<endl 36 35 <<" -O surf,tobs : surface effective (m^2) et temps d\'observation (s)"<<endl 37 <<" - ATsys : temperature du system (K)"<<endl36 <<" -N Tsys : temperature du system (K)"<<endl 38 37 <<" -S Tsynch,indnu : temperature (K) synch a 408 Mhz, index d\'evolution"<<endl 39 38 <<" (indnu==0 no evolution with freq.)"<<endl … … 43 42 <<" -U h100,om0,ol0,w0,or0,flat : cosmology"<<endl 44 43 <<" -2 : two polarisations measured"<<endl 44 <<" -A <log10(S_agn)> : moyenne du flux AGN en Jy dans le pixel"<<endl 45 45 <<" redshift : redshift moyen du survey"<<endl 46 46 <<endl; … … 59 59 double alpha = -1.37; 60 60 cout<<"nstar= "<<nstar<<" mstar="<<mstar<<" alpha="<<alpha<<endl; 61 62 61 63 62 // --- Arguments … … 76 75 double vrot = 300.; // largeur en vitesse (km/s) pour elargissement doppler 77 76 double facpolar = 0.5; // si on ne mesure les 2 polars -> 1.0 77 double lflux_agn = -3.; 78 78 79 79 // --- Decodage arguments 80 80 char c; 81 while((c = getopt(narg,arg,"hP2x:y:z: A:S:O:M:F:V:U:L:")) != -1) {81 while((c = getopt(narg,arg,"hP2x:y:z:N:S:O:M:F:V:U:L:A:")) != -1) { 82 82 switch (c) { 83 83 case 'P' : … … 99 99 sscanf(optarg,"%lf",&lobewidth); 100 100 break; 101 case ' A' :101 case 'N' : 102 102 sscanf(optarg,"%lf",&Tsys); 103 103 break; … … 119 119 case '2' : 120 120 facpolar = 1.0; 121 break; 122 case 'A' : 123 sscanf(optarg,"%lf",&lflux_agn); 121 124 break; 122 125 case 'h' : … … 281 284 double lobecyl = sqrt(8.)*slobe; // diametre du lobe cylindrique equiv en arcmin 282 285 double lobearea = M_PI*lobecyl*lobecyl/4.; // en arcmin^2 (hypothese lobe gaussien) 286 double nlobes = rad2min(adtx)*rad2min(adty)/lobearea; 287 if(lobewidth<=0.) nlobes = 1.; 283 288 cout<<"\nBeam FWHM = "<<lobewidth<<"\' -> sigma = "<<slobe<<"\' -> " 284 289 <<" Dcyl = "<<lobecyl<<"\' -> area = "<<lobearea<<" arcmin^2"<<endl; 285 double nlobes = rad2min(adtx)*rad2min(adty)/lobearea;286 290 cout<<"Number of beams in one transversal pixel = "<<nlobes<<endl; 287 291 … … 290 294 cout<<"flux factor = "<<hifactor<<" at redshift = "<<redshift<<endl; 291 295 292 double fhi = hifactor* FluxHI(mhiref,dlum);296 double fhi = hifactor*Msol2FluxHI(mhiref,dlum); 293 297 cout<<"FluxHI("<<dlum<<" Mpc) all polar:"<<endl 294 298 <<" Flux= "<<fhi<<" W/m^2 = "<<fhi/Jansky2Watt_cst<<" Jy.Hz"<<endl 295 <<" in ["<<hifactor* FluxHI(mhiref,dlumlim[0])296 <<","<<hifactor* FluxHI(mhiref,dlumlim[1])<<"] W/m^2"<<endl;299 <<" in ["<<hifactor*Msol2FluxHI(mhiref,dlumlim[0]) 300 <<","<<hifactor*Msol2FluxHI(mhiref,dlumlim[1])<<"] W/m^2"<<endl; 297 301 double sfhi = fhi / (dnuhiz*1e9) / Jansky2Watt_cst; 298 302 cout<<"If spread over "<<dnuhiz<<" GHz, flux density = "<<sfhi<<" Jy"<<endl; … … 342 346 cout<<" flux density = "<<scmb<<" Jy"<<endl; 343 347 348 // AGN 349 double flux_agn = pow(10.,lflux_agn); 350 cout<<"AGN: log10(S_agn)="<<lflux_agn<<" -> S_agn="<<flux_agn<<" Jy"<<endl; 351 double flux_agn_pix = flux_agn*(dnuhiz*1e9); 352 double mass_agn_pix = FluxHI2Msol(flux_agn_pix*Jansky2Watt_cst,dlum); 353 double lmass_agn_pix = log10(mass_agn_pix); 354 cout<<"...pixel: f="<<flux_agn_pix<<" 10^-26 W/m^2" 355 <<" -> "<<mass_agn_pix<<" Msol -> log10 = "<<lmass_agn_pix<<endl; 356 344 357 // --- Noise analysis 345 358 cout<<"\n--- Noise analysis"<<endl;
Note:
See TracChangeset
for help on using the changeset viewer.