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/toistat.cc

    r2054 r2058  
    4545    cout << "\n Usage : toistat [-intoi toiname] [-start snb] [-end sne] \n"
    4646         << "         [-wtoi sz] [-wclean wsz,nbw] [-range min,max] [-cleannsig nsig] \n"
    47          << "         [-outppf] [-noprstat] [-useseqbuff] \n"
     47         << "         [-sepflg sepFlagFile] [-outppf] [-noprstat] [-useseqbuff] \n"
    4848         << "         inFitsName outFileName \n"
    4949         << "   -start snb : sets the start sample num \n"
     
    5252         << "              default= -16000,16000\n"
    5353         << "   -intoi toiName : select input TOI name (def bolo)\n"
     54         << "   -sepflg sepFlagFileName: sets separate flag file (Level2)\n"
    5455         << "   -wtoi sz : sets TOISeqBuff buffer size (def= 8192)\n"
    5556         << "   -wclean wsz,nbw : sets cleaner window parameters (256,5) \n"
     
    9091  int clean_nbw = 5;
    9192  double clean_nsig = 999999.;
     93
     94// Fichier de flag separe / Level2 / Reza 18/6/2002
     95  string sepflagfile;   
     96  bool sepflg = false; 
    9297
    9398  // File names
     
    130135      intoi = arg[ia+1]; ia++;
    131136    }   
     137    else if (strcmp(arg[ia],"-sepflg") == 0) {
     138      if (ia == narg-1) Usage(true); 
     139      sepflagfile = arg[ia+1];
     140      sepflg = true; ia++;
     141    }   
    132142    else if (strcmp(arg[ia],"-outppf") == 0)  fgoutppf = true;
    133143
     
    166176    cout << "> Creating FITSTOIReader object - InFile=" << infile << endl;
    167177    FITSTOIReader r(infile);
     178    if (sepflg) {
     179      cout << " Setting separate flag file for InTOI_bolo File=" << sepflagfile
     180           << " (Flags=FlgToiSpike, FlgToiSource)" << endl;
     181      vector<FlagToiDef> flgcol;
     182      flgcol.push_back(FlgToiSpike);
     183      flgcol.push_back(FlgToiSource);
     184      r.setFlagFile(sepflagfile, flgcol);
     185    }
    168186
    169187    cout << "> Creating SimpleCleaner() " << endl;
Note: See TracChangeset for help on using the changeset viewer.