Changeset 432 in Sophya for trunk/Poubelle/archTOI.old/toiiter.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/toiiter.cc

    r426 r432  
    3636 tStart = -9.e99;
    3737 tEnd   = 9.e99;
     38 utcStart = -9.e99;
     39 utcEnd   = 9.e99;
     40 
     41 sStart = -999999999;
     42 sEnd   =  999999999;
    3843 
    3944 //tBlock0 = -1;
     
    6166  if (x.initDone && x.curFile != x.files.end()) curFile = files.find(*(x.curFile));
    6267  isOnBoardRecorder = x.isOnBoardRecorder;
    63   imes = x.imes;
    64   tStart = x.tStart;
    65   tEnd = x.tEnd;
     68  imes   = x.imes;
     69 
     70  tStart   = x.tStart;
     71  tEnd     = x.tEnd;
     72  utcStart = x.utcStart;
     73  utcEnd   = x.utcEnd;
     74  sStart   = x.sStart;
     75  sEnd     = x.sEnd;
     76 
    6677  trigMask = x.trigMask;
    6778  infos = x.infos;   
     
    108119 if (initDone) return;
    109120 initDone = true;
     121 if (utcStart > 0) {
     122   double t = (utcStart/24.) + archParam.acq.utcOrigin;
     123   if (t > tStart) tStart=t;
     124 }
     125 if (utcEnd > 0) {
     126   double t = (utcEnd/24.) + archParam.acq.utcOrigin;
     127   if (t < tEnd) tEnd=t;
     128 }
    110129 // On a soit un repertoire, soit une liste de fichiers....
    111130  if (directory == "") {
     
    215234    if ((*i).triggering) {
    216235      switch ((*i).kind) {
    217       case boloTens:
    218       case boloTens2:
    219       case boloRaw:
    220       case boloRawCN:
    221       case boloTensCN:
     236      case boloMuV:
     237      case boloMuV2:
     238      case boloRawMuV:
     239      case boloRawMuVCN:
    222240        trigMask |= block_bolo_mask;
    223241        break;
    224       case boloTens2T:
     242      case boloMuV2T:
    225243      case boloRes:
    226244      case boloTemp:
    227245         trigMask |= block_bolo_mask | block_reglage_mask;
    228246        break;
    229      case dilDAC:
     247      case dilDAC:
    230248      case dilSwitch:
    231249        trigMask |= block_dilution_mask;
     
    241259        trigMask |= block_gps_mask;
    242260        break;
    243       case azimutBolo:
     261      case azimuthBolo:
    244262        trigMask |= block_bolo_mask;
    245263        //file->needSSTProcessMask(SSTHandler::findPeriod);
     
    263281        break;
    264282      case gyroRaw:
    265       case gyroTens:
     283      case gyroV:
    266284        trigMask |= block_gyro_mask;
    267285        break;
     
    269287        trigMask |= block_gyro_mask; // $CHECK$ + info to calibrate gyros
    270288        break;
    271       case alphaAxis:
    272       case deltaAxis:
     289      case alphaRotAxis:
     290      case deltaRotAxis:
    273291      case alphaSst:
    274292      case deltaSst:
     293      case alphaFPAxis:
     294      case deltaFPAxis:
    275295      case alphaBolo:
    276296      case deltaBolo:
     
    278298        //file->needSSTProcessMask(SSTHandler::findAxis);
    279299        //trigMask |= block_sst_mask;
     300        break;
     301      case alphaZenith:
     302      case deltaZenith:
     303        trigMask |= block_gps_mask;
    280304        break;
    281305      }
     
    323347    double smp = file1stSamp[*i];
    324348    double t   = archParam.acq.tBlock0 + smp * archParam.acq.perEch/86400.;
    325     if (t>tEnd) {  // premier echantillon apres tEnd
     349    if (t>tEnd || smp>sEnd) {  // premier echantillon apres tEnd
    326350     files.erase(*i);
    327351     prev = "";
    328352     continue;
    329353    }
    330     if (t<tStart) { // premier echantillon avant tStart -> on vire le precedent si existe
     354    if (t<tStart || smp<sStart) { // premier echantillon avant tStart -> on vire le precedent si existe
    331355      if (prev != "") {
    332356        files.erase(prev);
     
    436460   TOIKind kind = infos[column].kind;
    437461   if (auxGPS &&
    438        (kind == longitude || kind == latitude || kind == altitude || kind == tsid)) {
     462       (kind == longitude || kind == latitude || kind == altitude || kind == tsid ||
     463        kind == alphaZenith || kind == deltaZenith)) {
    439464         double dummy;
    440465         return auxGPS->getLocation(getMJD(), dummy, dummy, dummy) == 0;
     
    448473   case internalTime:
    449474   case mjd:
     475   case mutc:
    450476     return true;
    451    case boloTens:
    452    case boloTens2:
    453    case boloTens2T:
     477   case boloMuV:
     478   case boloMuV2:
     479   case boloMuV2T:
    454480   case boloRes:
    455    case boloRawCN:
     481   case boloRawMuVCN:
    456482     if (imes==0 && file->llastBolo()==NULL) return false;
    457483     return file->lastBolo() != NULL;
    458    case boloTensCN:
    459    case boloRaw:
     484   case boloRawMuV:
    460485     return file->lastBolo() != NULL;
    461486   case boloGainAmpli:
     
    480505   }
    481506   case gyroRaw:
    482    case gyroTens:
     507   case gyroV:
    483508   case gyroSpeed:
    484509     return (file->lastGyro() != NULL);
     
    487512   case longitude:
    488513   case latitude:
     514   case alphaZenith:
     515   case deltaZenith:
    489516     return file->hasGPSPos();
    490517   case altitude:
     
    492519   case tsid:
    493520     return file->hasGPSPos();
    494    case azimutBolo:
    495    case alphaAxis:
    496    case deltaAxis:
     521   case azimuthBolo:
     522   case alphaRotAxis:
     523   case deltaRotAxis:
     524   case alphaFPAxis:
     525   case deltaFPAxis:
    497526   case alphaBolo:
    498527   case deltaBolo:
     
    525554           return tSid.getLST(getMJD());
    526555         }
     556         
    527557   }
    528558   if (rawIter) {
     
    540570   case mjd:
    541571     return getMJD();
    542    case boloTens:
     572   case mutc:
     573     return (getMJD()-archParam.acq.utcOrigin)*24.;
     574   case boloMuV:
    543575     return file->getMuVBolo(index, imes);
    544    case boloTens2:
     576   case boloMuV2:
    545577     return file->getMuVBolo2(index, imes);
    546    case boloRaw:
     578   case boloRawMuV:
    547579     return file->getRawBolo(index, imes);
    548    case boloRawCN:
    549      return file->getRawBoloCN(index, imes);
    550    case boloTensCN:
     580   case boloRawMuVCN:
    551581     return file->getMuVBoloCN(index, imes);
    552582   case boloGainAmpli:
     
    556586   case boloDACI:
    557587     return file->getDACI(index);
    558    case boloTens2T:
     588   case boloMuV2T:
    559589     return file->getMuVBolo2T(index, imes);
    560590   case boloRes:
     
    582612   case gyroRaw:
    583613     return file->getGyroRaw(index, imes);
    584    case gyroTens:
     614   case gyroV:
    585615     return file->getGyroTens(index, imes);
    586616   case gyroSpeed:
     
    597627     tSid.setLongitude(file->getGPSLong());
    598628     return tSid.getLST(getMJD());
    599    case azimutBolo:
    600    case alphaAxis:
    601    case deltaAxis:
     629   case azimuthBolo:
     630   case alphaRotAxis:
     631   case deltaRotAxis:
     632   case alphaFPAxis:
     633   case deltaFPAxis:
     634   case alphaZenith:
     635   case deltaZenith:
    602636   case alphaBolo:
    603637   case deltaBolo: {
     
    614648        tempLocator.setEarthPos(lon, lat);
    615649        tempLocator.setTSid(ts);
    616         if ((kind) == alphaAxis) return tempLocator.getAlphaZenith();
    617         if ((kind) == deltaAxis) return tempLocator.getDeltaZenith();
    618         if ((kind) == azimutBolo) return tempLocator.getAzimutBolo(getSampleIndex(),index);
     650        if ((kind) == alphaRotAxis) return tempLocator.getAlphaZenith();
     651        if ((kind) == deltaRotAxis) return tempLocator.getDeltaZenith();
     652        if ((kind) == alphaZenith) return tempLocator.getAlphaZenith();
     653        if ((kind) == deltaZenith) return tempLocator.getDeltaZenith();
     654        if ((kind) == azimuthBolo) return tempLocator.getAzimutBolo(getSampleIndex(),index);
    619655        if ((kind) == alphaBolo) return tempLocator.getAlphaBolo(getSampleIndex(),index);
    620656        if ((kind) == deltaBolo) return tempLocator.getDeltaBolo(getSampleIndex(),index);
     657        if ((kind) == alphaFPAxis) return tempLocator.getAlphaCenter(getSampleIndex());
     658        if ((kind) == deltaFPAxis) return tempLocator.getDeltaCenter(getSampleIndex());
    621659        return 0;
    622660     }
     
    640678     case internalTime:
    641679     case mjd:
     680     case mutc:
    642681     case tsid:
    643682       return true;
    644      case boloTens:
    645      case boloTens2:
    646      case boloTens2T:
     683     case boloMuV:
     684     case boloMuV2:
     685     case boloMuV2T:
    647686     case boloRes:
    648687       return file->blockNum() == file->getBoloBlockNum();
    649      case boloRaw:
    650      case boloRawCN:
    651      case boloTensCN:
     688     case boloRawMuV:
     689     case boloRawMuVCN:
    652690       return file->blockNum() == file->getBoloBlockNum();
    653691     case boloGainAmpli:
     
    670708       return file->blockNum() == file->getSSTCompBlockNum();
    671709     case gyroRaw:
    672      case gyroTens:
     710     case gyroV:
    673711     case gyroSpeed:
    674712       return file->blockNum() == file->getGyroBlockNum();
     
    681719     case altitude:
    682720       return file->blockNum() == file->getGPSBlockNum() && imes==0;
    683      case azimutBolo:
     721     case azimuthBolo:
    684722     case alphaBolo:
    685723     case deltaBolo:
     724     case alphaZenith:
     725     case deltaZenith:
     726     case alphaFPAxis:
     727     case deltaFPAxis:
    686728       return true; // $CHECK$ with SSTHandler
    687      case alphaAxis:
     729     case alphaRotAxis:
    688730       return true; // $CHECK$ with SSTHandler
    689      case deltaAxis:
     731     case deltaRotAxis:
    690732       return true; // $CHECK$ with SSTHandler
    691733   }
Note: See TracChangeset for help on using the changeset viewer.