Changeset 432 in Sophya for trunk/Poubelle/archTOI.old/toisvr.cc


Ignore:
Timestamp:
Sep 24, 1999, 4:06:09 PM (26 years ago)
Author:
ansari
Message:

en cours

File:
1 edited

Legend:

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

    r426 r432  
    3636
    3737 
    38 void TOISvr::setTimeInterval(double tStart, double tEnd) {
     38void TOISvr::setMJDInterval(double tStart, double tEnd) {
    3939  if (tStart>0) iter.tStart = tStart;
    4040  if (tEnd>0)   iter.tEnd = tEnd;
    4141}
     42
     43void TOISvr::setUTCInterval(double tStart, double tEnd) {
     44  if (tStart>0) iter.utcStart = tStart;
     45  if (tEnd>0)   iter.utcEnd = tEnd;
     46}
     47
     48void TOISvr::setSNInterval(long tStart, long tEnd) {
     49  if (tStart>0) iter.sStart = tStart;
     50  if (tEnd>0)   iter.sEnd = tEnd;
     51}
     52
    4253
    4354void TOISvr::setUnderSample(int n) {
     
    110121    else tsttoi(internalTime)
    111122    else tsttoi(mjd)
    112     else tsttoi(boloTens)
    113     else tsttoi(boloTens2)
    114     else tsttoi(boloRaw)
     123    else tsttoi(mutc)
     124    else tsttoi(boloMuV)
     125    else tsttoi(boloMuV2)
     126    else tsttoi(boloRawMuV)
    115127    else tsttoi(boloRes)
    116128    else tsttoi(boloTemp)
     
    118130    else tsttoi(boloDACV)
    119131    else tsttoi(boloDACI)
    120     else tsttoi(boloTens2T)
    121     else tsttoi(boloRawCN)
    122     else tsttoi(boloTensCN)
     132    else tsttoi(boloMuV2T)
     133    else tsttoi(boloRawMuVCN)
    123134    else tsttoi(dilDAC)
    124135    else tsttoi(dilSwitch)
     136    else tsttoi(serviceTemp)
    125137    else tsttoi(sstDiode)
    126138    else tsttoi(sstChannel)
     
    132144    else tsttoi(sstStarT)
    133145    else tsttoi(gyroRaw)
    134     else tsttoi(gyroTens)
     146    else tsttoi(gyroV)
    135147    else tsttoi(gyroSpeed)
    136148    else tsttoi(gpsTime)
     
    139151    else tsttoi(altitude)
    140152    else tsttoi(tsid)
    141     else tsttoi(azimutBolo)
    142     else tsttoi(alphaAxis)
    143     else tsttoi(deltaAxis)
     153    else tsttoi(azimuthBolo)
     154    else tsttoi(alphaRotAxis)
     155    else tsttoi(deltaRotAxis)
    144156    else tsttoi(alphaSst)
    145157    else tsttoi(deltaSst)
     158    else tsttoi(alphaZenith)
     159    else tsttoi(deltaZenith)
     160    else tsttoi(alphaFPAxis)
     161    else tsttoi(deltaFPAxis)
    146162    else tsttoi(alphaBolo)
    147163    else tsttoi(deltaBolo)
     
    150166      return false;
    151167    }
    152     if (kind  == sampleNum || kind == mjd) notrig = true;
     168    if (kind  == sampleNum || kind == mjd || kind == mutc) notrig = true;
    153169    string toiname = keyw.substr(1);
    154170    while (args != "") {
    155171      if (args[0] == ' ') {
    156         args = args.substr(args.find_first_not_of(' '));
     172        x = args.find_first_not_of(' ');
     173        if (x==string::npos) break;
     174        args = args.substr(x);
    157175        if (args == "") break;
    158176      }
     
    196214    arg = arg.substr(arg.find_first_not_of(' '));
    197215  }
    198   if (key == "#TRANGE") {
     216  if (key == "#MJDRANGE") {
    199217    double tmin, tmax;
    200218    sscanf(arg.c_str(), "%lg %lg", &tmin, &tmax);
    201     setTimeInterval(tmin, tmax);
     219    setMJDInterval(tmin, tmax);
     220  } else if (key == "#UTCRANGE") {
     221    double tmin, tmax;
     222    sscanf(arg.c_str(), "%lg %lg", &tmin, &tmax);
     223    setUTCInterval(tmin, tmax);
     224  } else if (key == "#SNRANGE") {
     225    long tmin, tmax;
     226    sscanf(arg.c_str(), "%ld %ld", &tmin, &tmax);
     227    setSNInterval(tmin, tmax);
    202228  } else if (key == "#PATH") {
    203229    setDirectory(arg);
     
    212238    sscanf(arg.c_str(), "%lg", &t0);
    213239    archParam.acq.tBlock0 = t0;
     240  } else if (key == "#UTCORIGIN") {
     241    double t0;
     242    sscanf(arg.c_str(), "%lg", &t0);
     243    archParam.acq.utcOrigin = t0;
    214244  } else if (key == "#PERECH") {
    215245    double t0;
     
    235265  processRequest("#MJD0 1376.8358818");
    236266  processRequest("#PERECH 0.005836818076");
     267  processRequest("#UTCORIGIN 1376.5");
    237268  processRequest("#ASIGPS ASI_GPS_archeops1999.ascii");
    238269  processRequest("#COMMENT Archtoi -- 23 september 1999 -- Eric Aubourg CEA/DAPNIA");
Note: See TracChangeset for help on using the changeset viewer.