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


Ignore:
Timestamp:
Sep 23, 1999, 1:09:36 PM (26 years ago)
Author:
ansari
Message:

nouvelles tois

File:
1 edited

Legend:

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

    r416 r419  
    1616#include <dirent.h>
    1717#include <iostream.h>
     18#include "templocator.h"
    1819
    1920// Format bloc GPS
     
    238239        break;
    239240      case azimut:
    240         file->needSSTProcessMask(SSTHandler::findPeriod);
    241         trigMask |= block_sst_mask;
     241        trigMask |= block_bolo_mask;
     242        //file->needSSTProcessMask(SSTHandler::findPeriod);
     243        //trigMask |= block_sst_mask;
    242244        break;
    243245      case sstStarCnt:
     
    270272      case alphaBolo:
    271273      case deltaBolo:
    272         file->needSSTProcessMask(SSTHandler::findAxis);
    273         trigMask |= block_sst_mask;
     274        trigMask |= block_bolo_mask;
     275        //file->needSSTProcessMask(SSTHandler::findAxis);
     276        //trigMask |= block_sst_mask;
    274277        break;
    275278      }
     
    484487   case alphaAxis:
    485488   case deltaAxis:
    486      return false;
     489     return true;
    487490     //return (file->lastGPS() != NULL && file->lastSST() != NULL);
    488491   case alphaSst:
     
    587590     return tSid.getLST(getMJD());
    588591   case azimut:
    589      return file->getAzimut(imes);
    590592   case alphaAxis:
    591      return file->getAlpha(imes);
    592    case deltaAxis:
    593      return file->getDelta(imes);
     593   case deltaAxis: {
     594        double lat, lon;
     595        if (auxGPS) {
     596          double alti;
     597          auxGPS->getLocation(getMJD(), lat, lon, alti);
     598        } else {
     599          lon = file->getGPSLong();
     600          lat = file->getGPSLat();
     601        }
     602        tSid.setLongitude(lon);
     603        double ts = tSid.getLST(getMJD());
     604        tempLocator.setEarthPos(lon, lat);
     605        tempLocator.setTSid(ts);
     606        if ((kind) == alphaAxis) return tempLocator.getAlphaZenith();
     607        if ((kind) == deltaAxis) return tempLocator.getDeltaZenith();
     608        return 0;
     609     }
    594610   }
    595611   return -1;
Note: See TracChangeset for help on using the changeset viewer.