Changeset 2050 in Sophya for trunk/ArchTOIPipe/TestPipes


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

Location:
trunk/ArchTOIPipe/TestPipes
Files:
2 edited

Legend:

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

    r2047 r2050  
    4444         << "         [-soff2 wsz,nptfit,degpol] [-soff2nt PPFName] \n"
    4545         << "         [-bgal toiname] [-bgalfile pointFitsName] [-bgalnf N]\n"
    46          << "         [-bgal toiname] [-bgalfile pointFitsName] \n"
    4746         << "         [-bgalcut bmin,bmax]  [-bgal2cut bmin,bmax] \n"
    4847         << "         [-gfilt wsz,sigma] \n"
     
    7473         << "   -wrtms : Write mean/sigma TOI's from cleaner \n"
    7574         << "   -wrtifo : Write incopie flagged  TOI's from cleaner/ offset from SimpleOffsetEstimator \n"
    76          << "   -prstat : PrintStat with ProcSampleCounter \n"
     75         << "   -noprstat : DO NOT PrintStat with ProcSampleCounter \n"
    7776         << "   -useseqbuff : Use TOISeqBuffered TOI's (default: TOISegmented) \n"
    7877         << endl;
     
    9089  bool fgsetstart = false;
    9190
    92   bool fgprstat = false;
     91  bool fgprstat = true;
    9392  bool fgsegmented = true;
    9493
     
    250249
    251250    else if (strcmp(arg[ia],"-prstat") == 0)  fgprstat = true;
     251    else if (strcmp(arg[ia],"-noprstat") == 0)  fgprstat = false;
    252252    else if (strcmp(arg[ia],"-useseqbuff") == 0)  fgsegmented = false;
    253253
  • 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.