Changeset 3565 in Sophya for trunk/Cosmo/SimLSS


Ignore:
Timestamp:
Jan 30, 2009, 10:18:23 AM (17 years ago)
Author:
ansari
Message:

Ajout options -d/-D pour ecriture d_rho/rho en PPF/fits et sortie du programme apres - Reza 30/01/2009

File:
1 edited

Legend:

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

    r3557 r3565  
    5656     <<" -V : compute variance from real space (for check, default: no)"<<endl
    5757     <<" -T nth : nombre de threads (si compil multi-thread, default: 0)"<<endl
     58     <<" -D fileName : write only real cube d_rho/rho in FITS format and exit "<<endl
     59     <<" -d fileName : write only real cube d_rho/rho in PPF format and exit "<<endl
     60
    5861     <<endl;
    5962     ////<<" -A <log10(S_agn in Jy at 1.4 GHz)>,sigma,powlaw :"<<endl
     
    126129 bool wslice = false;
    127130 bool compvarreal = false;
     131 //Ajoute par Reza : Ecriture d_rho/rho en fits ou PPF et
     132 bool fgrzproc = false;
     133 string rzppfname = "";
     134 string rzfitsname = "";
     135 
    128136 unsigned long ntnent = 10000;  // 0 = do not fill NTuple
    129137
     
    136144
    137145 char c;
    138  while((c = getopt(narg,arg,"ha0PWSV2U:G:F:x:y:z:s:Z:M:A:T:N:Q:R:8:")) != -1) {
     146 while((c = getopt(narg,arg,"ha0PWSB2U:G:F:x:y:z:s:Z:M:A:T:N:Q:R:8:D:d")) != -1) {
    139147  int nth = 0;
    140148  switch (c) {
     
    204212  case 'S' :
    205213    wslice = true;
     214    break;
     215  case 'd' :
     216    fgrzproc = true;
     217    rzppfname = optarg;
     218    break;
     219  case 'D' :
     220    fgrzproc = true;
     221    rzfitsname = optarg;
    206222    break;
    207223  case 'T' :
     
    551567   PrtTim(">>>> End Check variance sigmaR in real space");
    552568 }
    553 
     569 if(fgrzproc) {
     570   cout << "--- Flag -d/-D specified, saving d_rho/rho and exiting ..." << endl;
     571   if (rzfitsname.length()>0) {
     572         cout<<" Writing d_rho/rho to fits file " << rzfitsname << endl;
     573     fluct3d.WriteFits(rzfitsname);
     574   }
     575   if (rzppfname.length()>0) {
     576         cout<<" Writing d_rho/rho to PPF file " << rzppfname << endl;
     577     fluct3d.WritePPF(rzppfname);
     578   }
     579   PrtTim(">>>> End WriteFits/PPF_d_rho/rho");
     580   cout<<"-------------------- END ------------------"<<endl;
     581   return 0;
     582 }
    554583 //-----------------------------------------------------------------
    555584 if(no_poisson_type!=0) {
Note: See TracChangeset for help on using the changeset viewer.