Changeset 2058 in Sophya for trunk/ArchTOIPipe/TestPipes/tsttoi2map.cc
- Timestamp:
- Jun 18, 2002, 2:21:09 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.