Changeset 3267 in Sophya for trunk/Cosmo/SimLSS/cmvobserv3d.cc
- Timestamp:
- Jun 14, 2007, 7:06:35 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvobserv3d.cc
r3262 r3267 39 39 <<" -P : write cube in PPF format"<<endl 40 40 <<" -V : compute variance from real space (for check, default: no)"<<endl 41 <<" -K : use power spectrum computation adapted for AGN (bidon!)"<<endl42 41 <<endl; 43 42 } … … 86 85 double lfjy_agn=-99., lsigma_agn=0.; // en Jy 87 86 double powlaw_agn = 0.; 88 bool killkz = false;89 87 90 88 // *** type de generation … … 106 104 107 105 char c; 108 while((c = getopt(narg,arg,"ha0PWV2G Kx:y:z:s:Z:M:A:")) != -1) {106 while((c = getopt(narg,arg,"ha0PWV2Gx:y:z:s:Z:M:A:")) != -1) { 109 107 switch (c) { 110 108 case 'a' : … … 141 139 do_agn = true; 142 140 sscanf(optarg,"%lf,%lf,%lf",&lfjy_agn,&lsigma_agn,&powlaw_agn); 143 break;144 case 'K' :145 killkz = true;146 141 break; 147 142 case 'V' : … … 284 279 fluct3d.SetNThread(nthread); 285 280 fluct3d.SetSize(nx,ny,nz,dx,dy,dz); 286 fluct3d.SetObservator(zref, nz/2.);281 fluct3d.SetObservator(zref,-nz/2.); 287 282 fluct3d.SetCosmology(univ); 288 283 fluct3d.SetGrowthFactor(growth); … … 530 525 hpkrec.ReCenterBin(); 531 526 hpkrec.Show(); 532 if(killkz) fluct3d.ComputeSpectrum_bricolo(hpkrec); 533 else fluct3d.ComputeSpectrum(hpkrec); 527 fluct3d.ComputeSpectrum(hpkrec); 534 528 tagobs = "hpkrec"; posobs.PutObject(hpkrec,tagobs); 535 529 PrtTim(">>>> End Computing final spectrum"); … … 541 535 hpkrec2.ReCenterBin(); hpkrec2.Zero(); 542 536 hpkrec2.Show(); 543 if(killkz) fluct3d.ComputeSpectrum2D_bricolo(hpkrec2); 544 else fluct3d.ComputeSpectrum2D(hpkrec2); 537 fluct3d.ComputeSpectrum2D(hpkrec2); 545 538 { 546 539 tagobs = "hpkrec2"; posobs.PutObject(hpkrec2,tagobs);
Note:
See TracChangeset
for help on using the changeset viewer.