Changeset 363 in Sophya for trunk/Poubelle/archTOI.old


Ignore:
Timestamp:
Aug 6, 1999, 11:58:04 PM (26 years ago)
Author:
ansari
Message:

Gestion tsid

Location:
trunk/Poubelle/archTOI.old
Files:
2 added
8 edited

Legend:

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

    r350 r363  
    2626      return(-1);
    2727    }
     28   
    2829    ArchTOI toi(argv[1]);
    2930    toi.run(argv[2]);
  • trunk/Poubelle/archTOI.old/asigps.cc

    r359 r363  
     1// asigps.cc
     2// Eric Aubourg         CEA/DAPNIA/SPP   aout 1999
     3
    14#include "asigps.h"
    25#include <fstream.h>
  • trunk/Poubelle/archTOI.old/asigps.h

    r358 r363  
     1// asigps.h
     2// Eric Aubourg         CEA/DAPNIA/SPP   aout 1999
     3
    14#ifndef ASIGPS_H
    25#define ASIGPS_H
  • trunk/Poubelle/archTOI.old/auxgps.h

    r358 r363  
     1// auxgps.h
     2// Eric Aubourg         CEA/DAPNIA/SPP   aout 1999
     3
    14#ifndef AUXGPS_H
    25#define AUXGPS_H
  • trunk/Poubelle/archTOI.old/auxinterpgps.cc

    r360 r363  
     1// auxinterpgps.cc
     2// Eric Aubourg         CEA/DAPNIA/SPP   aout 1999
     3
    14#include "auxinterpgps.h"
    25#include "fitsio.h"
  • trunk/Poubelle/archTOI.old/auxinterpgps.h

    r358 r363  
     1// auxinterpgps.h
     2// Eric Aubourg         CEA/DAPNIA/SPP   aout 1999
     3
    14#ifndef AUXINTERPGPS_H
    25#define AUXINTERPGPS_H
  • trunk/Poubelle/archTOI.old/toiiter.cc

    r358 r363  
    386386   TOIKind kind = infos[column].kind;
    387387   if (auxGPS &&
    388        (kind == longitude || kind == latitude || kind == altitude)) {
     388       (kind == longitude || kind == latitude || kind == altitude || kind == tsid)) {
    389389         double dummy;
    390390         return auxGPS->getLocation(getMJD(), dummy, dummy, dummy) == 0;
     
    419419     case altitude:
    420420       return file->hasGPSAlt();
     421     case tsid:
     422       return file->hasGPSPos();
    421423     case azimut:
    422424     case alphaAxis:
    423425     case deltaAxis:
    424        return (file->lastGPS() != NULL && file->lastSST() != NULL);
     426       return false;
     427       //return (file->lastGPS() != NULL && file->lastSST() != NULL);
     428     case alphaSst:
     429     case deltaSst:
     430     case alphaBolo:
     431     case deltaBolo:
     432       return false;
     433       
     434     case boloTemp:
     435       return false;
    425436   }
    426437   return false;
     
    431442   TOIKind kind = infos[column].kind;
    432443   if (auxGPS &&
    433        (kind == longitude || kind == latitude || kind == altitude)) {
     444       (kind == longitude || kind == latitude || kind == altitude || kind == tsid)) {
    434445         double lat,lon,alt;
    435446         if (auxGPS->getLocation(getMJD(), lat, lon, alt)) return -99999;
    436447         if (kind == longitude) return lon;
    437448         if (kind == latitude)  return lat;
    438          if (kind == altitude)  return alt;         
     449         if (kind == altitude)  return alt;
     450         if (kind == tsid) {
     451           tSid.setLongitude(lon);
     452           return tSid.getLST(getMJD());
     453         }
    439454   }
    440455   if (rawIter) {
     
    474489     case altitude:
    475490       return file->getGPSAlt();
     491     case tsid:
     492       tSid.setLongitude(file->getGPSLong());
     493       return tSid.getLST(getMJD());
    476494     case azimut:
    477495       return file->getAzimut(imes);
     
    498516     case internalTime:
    499517     case mjd:
     518     case tsid:
    500519       return true;
    501520     case boloTens:
  • trunk/Poubelle/archTOI.old/toiiter.h

    r358 r363  
    1212#include "archeopsfile.h"
    1313#include "auxgps.h"
     14#include "tsid.h"
    1415
    1516enum TOIKind {
     
    128129   
    129130   AuxGPS* auxGPS;
     131   TSid tSid;
    130132   
    131133   private:
Note: See TracChangeset for help on using the changeset viewer.