Ignore:
Timestamp:
Jun 18, 2002, 2:21:09 PM (23 years ago)
Author:
ansari
Message:

Ajout methode FITSTOIReader::setFlagFile() pour fichiers flag separes
de Level2 - Reza 18/6/2002

File:
1 edited

Legend:

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

    r2050 r2058  
    2727     <<"           [-a label_coord1] [-d label_coord2] [-b label_bolomuv]"<<endl
    2828     <<"           [-n nlat] [-i c,h] [-o c,h]"<<endl
    29      <<"           [-m vmin] [-M vmax] [-f flag]"<<endl
     29     <<"           [-m vmin] [-M vmax] [-f flag] [-F sepFlagFileName]"<<endl
    3030     <<"           fitsin_point fitsin_bolo fitsphout [fitsphwout]"<<endl
    3131     <<" -p lp : print level (def=0)"<<endl
     
    4444     <<" -f flag : samples are bad if match flag"<<endl
    4545     <<" -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
    4647     <<" -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
    4750     <<" fitsin_point : fits file for pointing"<<endl
    4851     <<" fitsin_bolo : fits file for bolo values"<<endl
     
    7073bool fgprstat = true;
    7174int nbpointfiles = 0;
     75double coeffcalib = 1.;
     76string sepflagfile;   // Fichier de flag separe / Level2 / Reza 18/6/2002
     77bool sepflg = false;  //   "     "     "      "       "       "       "
     78
    7279int c;
    73 while((c = getopt(narg,arg,"hIp:s:w:a:d:b:n:i:o:m:M:f:e:N:")) != -1) {
     80while((c = getopt(narg,arg,"hIp:s:w:a:d:b:n:i:o:m:M:f:e:N:c:F:")) != -1) {
    7481  switch (c) {
    7582  case 's' :
     
    125132    nbpointfiles = atoi(optarg);
    126133    break;
     134  case 'c' :
     135    coeffcalib = atof(optarg);
     136    break;
    127137  case 'I' :
    128138    snimplicit = true;
     139    break;
     140  case 'F' :
     141    sepflagfile = optarg;
     142    sepflg = true;
    129143    break;
    130144  case 'h' :
     
    154168    <<"  ...... ctype="<<tcoormap<<endl;
    155169cout<<"Equinoxe "<<equi<<" years"<<endl;
    156 
     170cout<<"CoeffCalib "<<coeffcalib<<endl;
     171 
    157172SophyaInit();
    158173InitTim();
     
    170185 if(ncolb<1) exit(-4);
    171186
     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 }
    172198 string pointfileI = fitsin_point;
    173199 MuTyV numf=0;
     
    212238 toi2m.SetTestMin(tmin,vmin);
    213239 toi2m.SetTestMax(tmax,vmax);
     240 toi2m.SetCalibrationFactor(coeffcalib);
    214241 toi2m.Print(cout);
    215242
Note: See TracChangeset for help on using the changeset viewer.