Changeset 3992 in Sophya for trunk/AddOn/TAcq/branap.cc


Ignore:
Timestamp:
May 11, 2011, 4:13:03 PM (14 years ago)
Author:
campagne
Message:

halfmedwith poru le filtrage des freq. TIMWIN pour tagger les fenetres des paquets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/branap.cc

    r3979 r3992  
    4343
    4444  fgfreqfilter_=false; //JEC 1/2/11
     45  medhalfwidth_=50;    //JEC 6/4/11
    4546
    4647  gainfile_="";
     
    137138    }
    138139    else if (strcmp(arg[ka],"-freqfilter")==0) {
    139       fgfreqfilter_=true;
     140      fgfreqfilter_=true;  ka++;
     141      if (strcmp(arg[ka],"-")!=0) medhalfwidth_=atof(arg[ka]);
    140142      ka++;
    141143    }   
     
    201203       << "                 [-prt lev,modulo] [-nvcal n] [-nthr n] [-nosfc]\n"
    202204       << "                 [-singlechan] [-twochan] [-fftdata] [-rawdata] \n"
     205       << "                 [-freqfilter medhw] [-gain filename] [-varcut min,max] [-nband nband,first,last] \n"
    203206       << "                 [-freqfilter] [-gain filename] [-varcut min,max] [-nband nband,first,last] \n"
    204207       << "                 [-tmproc hh:mm:ss,nseconds] [-filldt] [-tspwin wsz,extsz,nfiles] \n"
     
    232235       << " -tmproc hh:mm:ss,nseconds : processing time window definition \n"
    233236       << " -filldt : force data table filling \n"
    234        << " -freqfilter : force median filtering on the frequencies \n"
     237       << " -freqfilter medhw: force median filtering on the frequencies \n"
     238       << "   with half window width medhw (use - for default=" << medhalfwidth_ << ") \n"
    235239       << " -gain filename : spectral response fits file name \n"
    236240       << " -tspwin wsz,extsz,nfiles : spectra time (paquet no) window (ex: -tspwin 120,4,5) \n"
     
    283287       << " Bands: N=" <<  nbands_ << " First=" << bandfirst_ << " Last=" << bandlast_
    284288       << endl;
    285   cout << " force frequence median filtering (action gain)" << endl;
     289  if (fgfreqfilter_) {
     290    cout << " force frequence median filtering (action gain), half width =" << medhalfwidth_
     291         << endl;
     292  } else {
     293    cout<<" NO freq. filtering" << endl;
     294  }
    286295  cout << " Spectra TimeWindow (Nb.Paquets) Size=" << spec_win_sz_ << " ExtensionSize=" << spw_ext_sz_
    287296       << " MaxNbFile=" << nbmax_specwfiles_ << endl;
Note: See TracChangeset for help on using the changeset viewer.