Changeset 3565 in Sophya for trunk/Cosmo/SimLSS
- Timestamp:
- Jan 30, 2009, 10:18:23 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvobserv3d.cc
r3557 r3565 56 56 <<" -V : compute variance from real space (for check, default: no)"<<endl 57 57 <<" -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 58 61 <<endl; 59 62 ////<<" -A <log10(S_agn in Jy at 1.4 GHz)>,sigma,powlaw :"<<endl … … 126 129 bool wslice = false; 127 130 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 128 136 unsigned long ntnent = 10000; // 0 = do not fill NTuple 129 137 … … 136 144 137 145 char c; 138 while((c = getopt(narg,arg,"ha0PWS V2U: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) { 139 147 int nth = 0; 140 148 switch (c) { … … 204 212 case 'S' : 205 213 wslice = true; 214 break; 215 case 'd' : 216 fgrzproc = true; 217 rzppfname = optarg; 218 break; 219 case 'D' : 220 fgrzproc = true; 221 rzfitsname = optarg; 206 222 break; 207 223 case 'T' : … … 551 567 PrtTim(">>>> End Check variance sigmaR in real space"); 552 568 } 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 } 554 583 //----------------------------------------------------------------- 555 584 if(no_poisson_type!=0) {
Note:
See TracChangeset
for help on using the changeset viewer.