Changeset 2058 in Sophya for trunk/ArchTOIPipe/TestPipes
- Timestamp:
- Jun 18, 2002, 2:21:09 PM (23 years ago)
- Location:
- trunk/ArchTOIPipe/TestPipes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/TestPipes/toistat.cc
r2054 r2058 45 45 cout << "\n Usage : toistat [-intoi toiname] [-start snb] [-end sne] \n" 46 46 << " [-wtoi sz] [-wclean wsz,nbw] [-range min,max] [-cleannsig nsig] \n" 47 << " [- outppf] [-noprstat] [-useseqbuff] \n"47 << " [-sepflg sepFlagFile] [-outppf] [-noprstat] [-useseqbuff] \n" 48 48 << " inFitsName outFileName \n" 49 49 << " -start snb : sets the start sample num \n" … … 52 52 << " default= -16000,16000\n" 53 53 << " -intoi toiName : select input TOI name (def bolo)\n" 54 << " -sepflg sepFlagFileName: sets separate flag file (Level2)\n" 54 55 << " -wtoi sz : sets TOISeqBuff buffer size (def= 8192)\n" 55 56 << " -wclean wsz,nbw : sets cleaner window parameters (256,5) \n" … … 90 91 int clean_nbw = 5; 91 92 double clean_nsig = 999999.; 93 94 // Fichier de flag separe / Level2 / Reza 18/6/2002 95 string sepflagfile; 96 bool sepflg = false; 92 97 93 98 // File names … … 130 135 intoi = arg[ia+1]; ia++; 131 136 } 137 else if (strcmp(arg[ia],"-sepflg") == 0) { 138 if (ia == narg-1) Usage(true); 139 sepflagfile = arg[ia+1]; 140 sepflg = true; ia++; 141 } 132 142 else if (strcmp(arg[ia],"-outppf") == 0) fgoutppf = true; 133 143 … … 166 176 cout << "> Creating FITSTOIReader object - InFile=" << infile << endl; 167 177 FITSTOIReader r(infile); 178 if (sepflg) { 179 cout << " Setting separate flag file for InTOI_bolo File=" << sepflagfile 180 << " (Flags=FlgToiSpike, FlgToiSource)" << endl; 181 vector<FlagToiDef> flgcol; 182 flgcol.push_back(FlgToiSpike); 183 flgcol.push_back(FlgToiSource); 184 r.setFlagFile(sepflagfile, flgcol); 185 } 168 186 169 187 cout << "> Creating SimpleCleaner() " << endl; -
trunk/ArchTOIPipe/TestPipes/tsttoi2map.cc
r2050 r2058 27 27 <<" [-a label_coord1] [-d label_coord2] [-b label_bolomuv]"<<endl 28 28 <<" [-n nlat] [-i c,h] [-o c,h]"<<endl 29 <<" [-m vmin] [-M vmax] [-f flag] "<<endl29 <<" [-m vmin] [-M vmax] [-f flag] [-F sepFlagFileName]"<<endl 30 30 <<" fitsin_point fitsin_bolo fitsphout [fitsphwout]"<<endl 31 31 <<" -p lp : print level (def=0)"<<endl … … 44 44 <<" -f flag : samples are bad if match flag"<<endl 45 45 <<" -N nbfiles : Number of fitsin_point files fitsin_point%d.fits 0..nb-1"<<endl 46 <<" -c calibcoeff : Coefficient de calibration a appliquer (def=1.)"<<endl 46 47 <<" -I : sampleNum are implicit in fits files (def=no)"<<endl 48 <<" -F sepFlagFileName : separate flag file name for levelS"<<endl 49 <<" (FlagColName: Glitch PtSrc)"<<endl 47 50 <<" fitsin_point : fits file for pointing"<<endl 48 51 <<" fitsin_bolo : fits file for bolo values"<<endl … … 70 73 bool fgprstat = true; 71 74 int nbpointfiles = 0; 75 double coeffcalib = 1.; 76 string sepflagfile; // Fichier de flag separe / Level2 / Reza 18/6/2002 77 bool sepflg = false; // " " " " " " " 78 72 79 int c; 73 while((c = getopt(narg,arg,"hIp:s:w:a:d:b:n:i:o:m:M:f:e:N: ")) != -1) {80 while((c = getopt(narg,arg,"hIp:s:w:a:d:b:n:i:o:m:M:f:e:N:c:F:")) != -1) { 74 81 switch (c) { 75 82 case 's' : … … 125 132 nbpointfiles = atoi(optarg); 126 133 break; 134 case 'c' : 135 coeffcalib = atof(optarg); 136 break; 127 137 case 'I' : 128 138 snimplicit = true; 139 break; 140 case 'F' : 141 sepflagfile = optarg; 142 sepflg = true; 129 143 break; 130 144 case 'h' : … … 154 168 <<" ...... ctype="<<tcoormap<<endl; 155 169 cout<<"Equinoxe "<<equi<<" years"<<endl; 156 170 cout<<"CoeffCalib "<<coeffcalib<<endl; 171 157 172 SophyaInit(); 158 173 InitTim(); … … 170 185 if(ncolb<1) exit(-4); 171 186 187 188 sepflagfile = optarg; 189 sepflg = true; 190 if (sepflg) { 191 cout << " Setting separate flag file for InTOI_bolo File=" << sepflagfile 192 << " (Flags=FlgToiSpike, FlgToiSource)" << endl; 193 vector<FlagToiDef> flgcol; 194 flgcol.push_back(FlgToiSpike); 195 flgcol.push_back(FlgToiSource); 196 rfitsb.setFlagFile(sepflagfile, flgcol); 197 } 172 198 string pointfileI = fitsin_point; 173 199 MuTyV numf=0; … … 212 238 toi2m.SetTestMin(tmin,vmin); 213 239 toi2m.SetTestMax(tmax,vmax); 240 toi2m.SetCalibrationFactor(coeffcalib); 214 241 toi2m.Print(cout); 215 242
Note:
See TracChangeset
for help on using the changeset viewer.