Changeset 426 in Sophya for trunk/Poubelle/archTOI.old/toiiter.cc


Ignore:
Timestamp:
Sep 24, 1999, 9:15:56 AM (26 years ago)
Author:
ansari
Message:

alpha delta a partir croisement galax

File:
1 edited

Legend:

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

    r419 r426  
    5252 
    5353 initDone = false;
     54 
     55 underSample = 1;
    5456}
    5557
     
    8789 
    8890  initDone = x.initDone;
     91  underSample = x.underSample;
    8992}
    9093
     
    238241        trigMask |= block_gps_mask;
    239242        break;
    240       case azimut:
     243      case azimutBolo:
    241244        trigMask |= block_bolo_mask;
    242245        //file->needSSTProcessMask(SSTHandler::findPeriod);
     
    353356}
    354357
    355 
    356358bool TOIIter::Next() {
     359  for (int ii=0; ii<underSample; ii++)
     360    if (!Next1()) return false;
     361  return true;
     362}
     363
     364bool TOIIter::Next1() {
    357365  if (!initDone) Init();
    358366  while (1) {
     
    484492   case tsid:
    485493     return file->hasGPSPos();
    486    case azimut:
     494   case azimutBolo:
    487495   case alphaAxis:
    488496   case deltaAxis:
     497   case alphaBolo:
     498   case deltaBolo:
    489499     return true;
    490500     //return (file->lastGPS() != NULL && file->lastSST() != NULL);
    491501   case alphaSst:
    492502   case deltaSst:
    493    case alphaBolo:
    494    case deltaBolo:
    495503     return false;
    496504     
     
    589597     tSid.setLongitude(file->getGPSLong());
    590598     return tSid.getLST(getMJD());
    591    case azimut:
     599   case azimutBolo:
    592600   case alphaAxis:
    593    case deltaAxis: {
     601   case deltaAxis:
     602   case alphaBolo:
     603   case deltaBolo: {
    594604        double lat, lon;
    595605        if (auxGPS) {
     
    606616        if ((kind) == alphaAxis) return tempLocator.getAlphaZenith();
    607617        if ((kind) == deltaAxis) return tempLocator.getDeltaZenith();
     618        if ((kind) == azimutBolo) return tempLocator.getAzimutBolo(getSampleIndex(),index);
     619        if ((kind) == alphaBolo) return tempLocator.getAlphaBolo(getSampleIndex(),index);
     620        if ((kind) == deltaBolo) return tempLocator.getDeltaBolo(getSampleIndex(),index);
    608621        return 0;
    609622     }
     
    668681     case altitude:
    669682       return file->blockNum() == file->getGPSBlockNum() && imes==0;
    670      case azimut:
     683     case azimutBolo:
     684     case alphaBolo:
     685     case deltaBolo:
    671686       return true; // $CHECK$ with SSTHandler
    672687     case alphaAxis:
     
    726741}
    727742 
     743int TOIIter::getUnderSampling() {
     744  return underSample;
     745}
     746
    728747int TOIIter::getSampleIndex() {
    729748  if (!initDone) Init();
Note: See TracChangeset for help on using the changeset viewer.