- Timestamp:
- Nov 15, 2010, 4:11:32 PM (15 years ago)
- Location:
- trunk/Cosmo/SimLSS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvginit3d.cc
r3828 r3908 33 33 <<" else : no evol, spectrum Pk(z=z_median) for all cube (def)"<<endl 34 34 <<" -F : filter spectrum by pixel shape (0=no 1=yes(default)"<<endl 35 <<" -K : modify spectrum with Kaiser redshift distortion (default=no)"<<endl 35 36 <<" -x nx,dx : size along x axis (npix,Mpc)"<<endl 36 37 <<" -y ny,dy : size along y axis (npix,Mpc)"<<endl … … 92 93 unsigned short nthread=0; 93 94 int filter_by_pixel = 1; 95 bool kaiser_modify = false; 94 96 95 97 // *** What to do … … 120 122 // --- Decodage des arguments 121 123 char c; 122 while((c = getopt(narg,arg,"haG:F: x:y:z:Z:128:v:n:CO:So:VT:f:")) != -1) {124 while((c = getopt(narg,arg,"haG:F:Kx:y:z:Z:128:v:n:CO:So:VT:f:")) != -1) { 123 125 int nth = 0; 124 126 switch (c) { … … 131 133 case 'F' : 132 134 filter_by_pixel = atoi(optarg); 135 break; 136 case 'K' : 137 kaiser_modify = true; 133 138 break; 134 139 case 'x' : … … 199 204 cout<<"kmin="<<kmin<<" ("<<log10(kmin)<<"), kmax="<<kmax<<" ("<<log10(kmax)<<") Mpc^-1"<<", npt="<<npt<<endl; 200 205 cout<<"Filter by pixel = "<<filter_by_pixel<<endl; 206 if(kaiser_modify) cout<<"Modify spectrum with Kaiser redshift distorted formula"<<endl; 201 207 if(comptransveloc) cout<<"Tansverse velocity generation requested"<<endl; 202 208 if(cambfread.size()>0) cout<<"use CAMB file: cambfread="<<cambfread<<endl; … … 397 403 398 404 //----------------------------------------------------------------- 405 bool spec_is_modified = false; 399 406 if(filter_by_pixel!=0) { 400 407 cout<<"\n--- Computing convolution by pixel shape"<<endl; 401 408 fluct3d.FilterByPixel(); 402 fluct3d.NTupleCheck(posobs,string("ntpkgenf"),ntnent);409 spec_is_modified = true; 403 410 PrtTim(">>>> End Computing convolution by pixel shape"); 404 411 } 405 412 413 //----------------------------------------------------------------- 414 if(kaiser_modify) { 415 cout<<"\n--- Modify spectrum coeff with Kaiser redshift distorted formula"<<endl; 416 fluct3d.ToRedshiftSpace(); 417 spec_is_modified = true; 418 PrtTim(">>>> End Computing Modify spectrum coeff with Kaiser"); 419 } 420 421 //----------------------------------------------------------------- 422 if(spec_is_modified) fluct3d.NTupleCheck(posobs,string("ntpkgenf"),ntnent); 406 423 if(compdspec&1) { 407 424 HistoErr hpkgenf(hpkgen); 408 if( filter_by_pixel!=0) {425 if(spec_is_modified) { 409 426 cout<<"\n--- Checking realization spectra"<<endl; 410 427 hpkgenf.Zero(); hpkgenf.Show(); … … 416 433 if(compdspec&2) { 417 434 Histo2DErr hpkgenf2(hpkgen2); 418 if( filter_by_pixel!=0) {435 if(spec_is_modified) { 419 436 cout<<"\n--- Checking realization 2D spectra"<<endl; 420 437 hpkgenf2.Zero(); hpkgenf2.Show(); -
trunk/Cosmo/SimLSS/genefluct3d.cc
r3808 r3908 911 911 double beta = -(1.+zpk) * growth_->DsDz(zpk,good_dzinc_) / (*growth_)(zpk); 912 912 if(lp_>0) cout<<"--- ToRedshiftSpace --- at z="<<zpk<<", Beta="<<beta 913 <<" ( km/s)/Mpc (comp. for dz="<<good_dzinc_<<")"<<endl;913 <<" (comp. for dz="<<good_dzinc_<<")"<<endl; 914 914 check_array_alloc(); 915 915 … … 1014 1014 // Apply Growth(z) to redshift-distorted real space cube 1015 1015 { 1016 const char *bla = "GeneFluct3D::ApplyRedshiftSpaceGrowthFactor_Error: redshift evolution impossible because factor depen on k";1016 const char *bla = "GeneFluct3D::ApplyRedshiftSpaceGrowthFactor_Error: redshift evolution impossible because factor depends on k"; 1017 1017 cout<<bla<<endl; throw ParmError(bla); 1018 1018 }
Note:
See TracChangeset
for help on using the changeset viewer.