Changeset 2050 in Sophya for trunk/ArchTOIPipe/TestPipes/tsttoi2map.cc
- Timestamp:
- Jun 10, 2002, 4:23:56 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/TestPipes/tsttoi2map.cc
r2012 r2050 43 43 <<" -M vmax : samples are good if sample value <= vmax"<<endl 44 44 <<" -f flag : samples are bad if match flag"<<endl 45 <<" -N nbfiles : Number of fitsin_point files fitsin_point%d.fits 0..nb-1"<<endl 45 46 <<" -I : sampleNum are implicit in fits files (def=no)"<<endl 46 47 <<" fitsin_point : fits file for pointing"<<endl … … 67 68 long sdeb,sfin; 68 69 bool snimplicit = false; 70 bool fgprstat = true; 71 int nbpointfiles = 0; 69 72 int c; 70 while((c = getopt(narg,arg,"hIp:s:w:a:d:b:n:i:o:m:M:f:e: ")) != -1) {73 while((c = getopt(narg,arg,"hIp:s:w:a:d:b:n:i:o:m:M:f:e:N:")) != -1) { 71 74 switch (c) { 72 75 case 's' : … … 118 121 sscanf(optarg,"%ul",&badflg); 119 122 tflg = true; 123 break; 124 case 'N' : 125 nbpointfiles = atoi(optarg); 120 126 break; 121 127 case 'I' : … … 139 145 <<"Fits Infile Bolo "<<fitsin_bolo<<endl 140 146 <<" ...label_bolomuv "<<label_bolomuv<<endl; 141 cout<<"Fits Infile Pointing "<<fitsin_point<< endl147 cout<<"Fits Infile Pointing "<<fitsin_point<<" NbFiles=" <<nbpointfiles<<endl 142 148 <<" ...label_coord1 "<<label_coord1<<endl 143 149 <<" ...label_coord2 "<<label_coord2<<endl … … 164 170 if(ncolb<1) exit(-4); 165 171 166 FITSTOIReader rfitsp(fitsin_point); 172 string pointfileI = fitsin_point; 173 MuTyV numf=0; 174 if(nbpointfiles > 0) 175 pointfileI += (string)numf + ".fits"; 176 cout << " Creating FITSTOIReader for pointing file " << pointfileI << endl; 177 FITSTOIReader rfitsp(pointfileI); 178 if(nbpointfiles > 0) 179 for(int kff=1; kff<nbpointfiles; kff++) { 180 numf=kff; 181 pointfileI = fitsin_point; 182 pointfileI += (string)numf + ".fits"; 183 cout << " pointing FITSTOIReader.addFile( " << pointfileI << " )" << endl; 184 rfitsp.addFile( pointfileI ); 185 } 186 167 187 if(snimplicit) rfitsp.setImplicitSN(); 168 188 int ncolp = rfitsp.getNOut();
Note:
See TracChangeset
for help on using the changeset viewer.