Changeset 1483 in Sophya for trunk/ArchTOIPipe/TestPipes
- Timestamp:
- Apr 30, 2001, 10:52:01 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/TestPipes/simtst.cc
r1479 r1483 34 34 cout << "\n Usage : simtst [-dbg] [-start snb] [-end sne] \n" 35 35 << " [-wtoi sz] [-wdegli sz] [-wfft sz] [-keepfft n] \n" 36 << " inFitsName outFitsName \n"36 << " inFitsName outFitsName outPPFName \n" 37 37 << " -dbg : sets TOISeqBuffered debug level to 1 \n" 38 38 << " -start snb : sets the start sample num \n" … … 57 57 58 58 bool fgdbg = false; 59 bool fgsetstart = false; 59 60 int wtoi = 8192; 60 61 int wdegli = 512; … … 62 63 int keepfft = 0; 63 64 int nmax = 10; 64 int istart = 104121000+wtoi*5;65 int istart = 0; 65 66 int iend = 0; 66 67 double range_min = -16000; … … 68 69 string infile; 69 70 string outfile; 71 string outppfname; 70 72 string intoi = "boloMuV_27"; 71 73 bool fg_f_filt = false; … … 78 80 if (ia == narg-1) Usage(true); // -start est suivi d'un argument 79 81 istart = atoi(arg[ia+1]); ia++; 82 fgsetstart = true; 80 83 } 81 84 else if (strcmp(arg[ia],"-end") == 0) { … … 115 118 116 119 if (iend < istart) iend = istart+wtoi*(nmax+5); 117 if ((narg-ko) < 2) Usage(true);120 if ((narg-ko) < 3) Usage(true); 118 121 infile = arg[ko]; 119 122 outfile = arg[ko+1]; 123 outppfname = arg[ko+2]; 120 124 121 125 cout << " Initializing SOPHYA ... " << endl; … … 134 138 // mgr->setRequestedSample(11680920,11710584); 135 139 // mgr->setRequestedSample(104121000, 104946120); 136 137 mgr->setRequestedSample(istart, iend);140 if (fgsetstart) 141 mgr->setRequestedSample(istart, iend); 138 142 139 143 // FITSTOIReader r("/data/Archeops/bolo11.fits); … … 146 150 147 151 int w1 = wtoi; 148 int w2 = (fg_f_filt && (wfft > w1)) ? wfft: w1;152 int w2 = (fg_f_filt) ? 2*wfft+w1 : w1; 149 153 150 154 // char * colname[5] = {"MJD", "UTC","boloMuV_11","magnFlux","pivot"}; … … 158 162 TOISeqBuffered * toisig = new TOISeqBuffered("sigma", w2); 159 163 if (fgdbg) toisig->setDebugLevel(1); 160 TOISeqBuffered * toiincopie = new TOISeqBuffered("incopie", w 1);164 TOISeqBuffered * toiincopie = new TOISeqBuffered("incopie", w2); 161 165 if (fgdbg) toiincopie->setDebugLevel(1); 162 166 … … 234 238 cout << " Creating Fourier Filter ... " << endl; 235 239 SimpleFourierFilter sfft(fcoef); 236 sfft.KeepSpectra( keepfft);240 sfft.KeepSpectra(outppfname, keepfft); 237 241 TOISeqBuffered * toifft = NULL; 238 242 TOISeqBuffered * toifiltcopie = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.