Ignore:
Timestamp:
Jun 10, 2002, 4:23:56 PM (23 years ago)
Author:
ansari
Message:

Modifs lecture multiple fichiers de pointage - Reza 10/6/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/TestPipes/tsttoi2map.cc

    r2012 r2050  
    4343     <<" -M vmax : samples are good if sample value <= vmax"<<endl
    4444     <<" -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
    4546     <<" -I : sampleNum are implicit in fits files (def=no)"<<endl
    4647     <<" fitsin_point : fits file for pointing"<<endl
     
    6768long sdeb,sfin;
    6869bool snimplicit = false;
     70bool fgprstat = true;
     71int nbpointfiles = 0;
    6972int c;
    70 while((c = getopt(narg,arg,"hIp:s:w:a:d:b:n:i:o:m:M:f:e:")) != -1) {
     73while((c = getopt(narg,arg,"hIp:s:w:a:d:b:n:i:o:m:M:f:e:N:")) != -1) {
    7174  switch (c) {
    7275  case 's' :
     
    118121    sscanf(optarg,"%ul",&badflg);
    119122    tflg = true;
     123    break;
     124  case 'N' :
     125    nbpointfiles = atoi(optarg);
    120126    break;
    121127  case 'I' :
     
    139145    <<"Fits Infile Bolo "<<fitsin_bolo<<endl
    140146    <<"  ...label_bolomuv "<<label_bolomuv<<endl;
    141 cout<<"Fits Infile Pointing "<<fitsin_point<<endl
     147cout<<"Fits Infile Pointing "<<fitsin_point<<" NbFiles=" <<nbpointfiles<<endl
    142148    <<"  ...label_coord1 "<<label_coord1<<endl
    143149    <<"  ...label_coord2 "<<label_coord2<<endl
     
    164170 if(ncolb<1) exit(-4);
    165171
    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 
    167187 if(snimplicit) rfitsp.setImplicitSN();
    168188 int ncolp = rfitsp.getNOut();
Note: See TracChangeset for help on using the changeset viewer.