Changeset 3283 in Sophya for trunk/Cosmo/SimLSS/cmvobserv3d.cc
- Timestamp:
- Jul 25, 2007, 2:41:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvobserv3d.cc
r3281 r3283 208 208 GrowthFactor growth(om0,ol0); 209 209 // GrowthFactor growth(1.,0.); // D(z) = 1/(1+z) 210 double growth_at_z = growth(zref); 211 cout<<"...Growth factor at z="<<zref<<" = "<<growth_at_z<<endl; 210 212 211 213 PkSpectrum0 pk0(pkini,tf); … … 439 441 double varr; 440 442 fluct3d.VarianceFrReal(R,varr); 443 cout<<"...Computed variance = "<<varr 444 <<" , Theorical variance at (z=0) = "<<pow(sigmaR,1.) 445 <<" , at (z="<<zref<<") = "<<pow(sigmaR*growth_at_z,1.)<<endl; 441 446 PrtTim(">>>> End Check variance sigmaR in real space"); 442 447 } … … 511 516 } 512 517 518 double scalecube = -1., offsetcube=0.; 513 519 if(snoise>0.) { 514 520 cout<<"\n--- Add noise to HI Flux snoise="<<snoise<<", evolution="<<isnoise_evol<<endl; 515 521 fluct3d.AddNoise2Real(snoise,(isnoise_evol>0? true:false)); 516 522 nm = fluct3d.MeanSigma2(rm,rs2); 523 if(rs2>0. && sr2int>0.) scalecube = sqrt(sr2int)/sqrt(rs2); 524 offsetcube = -rm; 517 525 PrtTim(">>>> End Add noise"); 518 526 } 519 527 528 if(scalecube>0.) { 529 cout<<"\n--- Scale and offset scale="<<scalecube 530 <<" off="<<offsetcube<<endl; 531 fluct3d.ScaleOffset(scalecube,offsetcube); 532 } 533 520 534 if(wfits) { 521 535 fluct3d.WriteFits("!cmvobserv3d_rf.fits");
Note:
See TracChangeset
for help on using the changeset viewer.