Changeset 350 in Sophya for trunk/Poubelle/archTOI.old/archtoi.cc


Ignore:
Timestamp:
Aug 4, 1999, 4:10:06 PM (26 years ago)
Author:
ansari
Message:

Gestion TRANGE, MJD0, PERECH....

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/archtoi.cc

    r342 r350  
     1// archtoi.cc
     2// Eric Aubourg         CEA/DAPNIA/SPP   juillet 1999
     3
     4
    15#include <string>
    26#include <iostream.h>
     
    2731void ArchTOI::init()
    2832{
    29   format = ascii;
     33  format = ascii_fmt;
    3034  undef  = "#";
    3135  allBolos = false;
     
    6064  tsttoi(sampleNum)
    6165  else tsttoi(internalTime)
    62   else tsttoi(utc)
     66  else tsttoi(mjd)
    6367  else tsttoi(boloTens)
    6468  else tsttoi(boloRaw)
    65   else tsttoi(sstSignal)
    66   else tsttoi(sstRaw)
     69  else tsttoi(sstDiode)
     70  else tsttoi(sstChannel)
    6771  else tsttoi(sstStarZ)
    6872  else tsttoi(sstStarF)
     
    117121  }
    118122  if (key == "#ASCII") {
    119     format = ascii;
     123    format = ascii_fmt;
     124  } else if (key == "#FITS") {
     125    format = fits_fmt;
    120126  } else if (key == "#TRANGE") {
    121127    double tmin, tmax;
     
    135141    double t0;
    136142    sscanf(arg.c_str(), "%lg", &t0);
    137     svr.SetMJD0(0);
     143    svr.SetMJD0(t0);
     144  } else if (key == "#PERECH") {
     145    double t0;
     146    sscanf(arg.c_str(), "%lg", &t0);
     147    svr.SetPerEch(t0);
    138148  } else if (key == "#END") {
    139149    return false;
     
    190200  while (iter.Next()) {
    191201    int nn = iter.getSampleIndex();
    192     // if (nn%200 == 0) {cout << "."; cout.flush();
    193     //   if (ofn != iter.currentFile()->filename()) {
    194     //    ofn = iter.currentFile()->filename();
    195     //   cout << "current file=" << ofn << endl;
    196     //  }
    197       //}
    198       //if (nn%(200*80) == 0) cout << endl;
     202     if (nn%200 == 0) {
     203       cout << "."; cout.flush();
     204     }
     205     if (nn%(200*80) == 0) cout << endl;
    199206    // Si rien de dispo parmi les triggering, alors on passe au suivant
    200207    bool hasValue = false;
Note: See TracChangeset for help on using the changeset viewer.