Changeset 3261 in Sophya for trunk/Cosmo/SimLSS/cmvobserv3d.cc


Ignore:
Timestamp:
Jun 4, 2007, 7:02:03 PM (18 years ago)
Author:
cmv
Message:

add sigma computation with bad pixel cmv 04/06/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/SimLSS/cmvobserv3d.cc

    r3252 r3261  
    435435 cout<<"1+rgen: ("<<nm<<") Mean = "<<rm<<", Sigma^2 = "
    436436     <<rs2<<" -> "<<sqrt(rs2)<<endl;
     437 nm = fluct3d.MeanSigma2(rm,rs2,0.,1e200,true,0.);
     438 cout<<"1+rgen with_neg_a_zero: ("<<nm<<") Mean = "<<rm<<", Sigma^2 = "
     439     <<rs2<<" -> "<<sqrt(rs2)<<endl;
    437440 PrtTim(">>>> End Converting fluctuations into mass");
    438441
     
    441444 cout<<rm<<" galaxies put into survey"<<endl;
    442445 nm = fluct3d.MeanSigma2(rm,rs2,0.);
    443  cout<<"galaxy: ("<<nm<<") Mean = "<<rm<<", Sigma^2 = "
     446 cout<<"galaxy mass: ("<<nm<<") Mean = "<<rm<<", Sigma^2 = "
     447     <<rs2<<" -> "<<sqrt(rs2)<<endl;
     448 nm = fluct3d.MeanSigma2(rm,rs2,0.,1e200,true,0.);
     449 cout<<"galaxy mass with_neg_a_zero: ("<<nm<<") Mean = "<<rm<<", Sigma^2 = "
    444450     <<rs2<<" -> "<<sqrt(rs2)<<endl;
    445451 PrtTim(">>>> End Converting mass into galaxy number");
    446452
    447  cout<<"\n--- Set negative pixels to BAD"<<endl;
     453 cout<<"\n--- Set negative and null pixels to BAD"<<endl;
    448454 nm = fluct3d.SetToVal(0.,1e+200,-999.);
    449455 cout<<nm<<" negative in survey set to BAD"<<endl;
    450456 nm = fluct3d.MeanSigma2(rm,rs2,-998.);
    451  cout<<"galaxy: ("<<nm<<") Mean = "<<rm<<", Sigma^2 = "
     457 cout<<"galaxy mass: ("<<nm<<") Mean = "<<rm<<", Sigma^2 = "
    452458     <<rs2<<" -> "<<sqrt(rs2)<<endl;
    453459 PrtTim(">>>> End Set negative pixels to BAD etc...");
     
    457463 cout<<nm<<" galaxies into survey after poisson"<<endl;
    458464 nm = fluct3d.MeanSigma2(rm,rs2,-998.);
    459  cout<<"galaxy: ("<<nm<<") Mean = "<<rm<<", Sigma^2 = "
     465 cout<<"galaxy number: ("<<nm<<") Mean = "<<rm<<", Sigma^2 = "
     466     <<rs2<<" -> "<<sqrt(rs2)<<endl;
     467 nm = fluct3d.MeanSigma2(rm,rs2,0.,1e200,true,0.);
     468 cout<<"galaxy number with_neg_a_zero: ("<<nm<<") Mean = "<<rm<<", Sigma^2 = "
    460469     <<rs2<<" -> "<<sqrt(rs2)<<endl;
    461470 PrtTim(">>>> End Apply poisson on galaxy number");
     
    474483 double mhi = fluct3d.TurnNGal2Mass(tirhmdndm,true);
    475484 cout<<mhi<<" MSol in survey / "<<mass_by_mpc3*fluct3d.GetVol()<<endl;
    476  nm = fluct3d.MeanSigma2(rm,rs2,0.);
     485 nm = fluct3d.MeanSigma2(rm,rs2,-998.);
    477486 cout<<"HI mass: ("<<nm<<") Mean = "<<rm<<", Sigma^2 = "
    478487     <<rs2<<" -> "<<sqrt(rs2)<<endl;
    479488 cout<<"Equivalent: "<<rm*nm/fluct3d.NPix()<<" Msol / pixels"<<endl;
     489 nm = fluct3d.MeanSigma2(rm,rs2,0.,1e200,true,0.);
     490 cout<<"HI mass with_neg_a_zero: ("<<nm<<") Mean = "<<rm<<", Sigma^2 = "
     491     <<rs2<<" -> "<<sqrt(rs2)<<endl;
    480492 PrtTim(">>>> End Convert Galaxy number to HI mass");
    481493
Note: See TracChangeset for help on using the changeset viewer.