Ignore:
Timestamp:
11/19/08 20:41:16 (16 years ago)
Author:
Malte Marquarding
Message:

update from livedata CVS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external/atnf/PKSIO/MBFITSreader.h

    r1427 r1452  
    2727//#                        AUSTRALIA
    2828//#
    29 //# $Id: MBFITSreader.h,v 19.15 2008-06-26 02:14:36 cal103 Exp $
     29//# $Id: MBFITSreader.h,v 19.21 2008-11-17 06:33:10 cal103 Exp $
    3030//#---------------------------------------------------------------------------
    3131//# The MBFITSreader class reads single dish RPFITS files (such as Parkes
     
    3939
    4040#include <atnf/PKSIO/FITSreader.h>
    41 #include <atnf/PKSIO/PKSMBrecord.h>
     41#include <atnf/PKSIO/MBrecord.h>
     42
     43using namespace std;
    4244
    4345// <summary>
     
    102104
    103105    // Read the next data record.
    104     virtual int read(PKSMBrecord &record);
     106    virtual int read(MBrecord &record);
    105107
    106108    // Close the RPFITS file.
     
    112114    float cUTC, cU, cV, cW, *cVis, *cWgt;
    113115
    114     char   cDateObs[10];
     116    char   cDateObs[12];
    115117    int    *cBeamSel, *cChanOff, cFirst, *cIFSel, cInterp, cIntTime, cMBopen,
    116118           cMopra, cNBeamSel, cNBin, cRetry, cSUpos, *cXpolOff;
     
    119121    int    cEOF, cEOS, cFlushBin, cFlushIF, cFlushing;
    120122    double *cPosUTC;
    121     PKSMBrecord *cBuffer;
     123    MBrecord *cBuffer;
    122124
     125    // Scan and cycle number bookkeeping.
    123126    int    cCycleNo, cScanNo;
    124127    double cPrevUTC;
     
    126129    // Read the next data record from the RPFITS file.
    127130    int rpget(int syscalonly, int &EOS);
     131    int rpfitsin(int &jstat);
     132
     133    // Check and, if necessary, repair a position timestamp.
     134    int    cCode5, cNRate;
     135    double cAvRate[2];
     136    int fixw(const char *datobs, int cycleNo, int beamNo, double avRate[2],
     137             double thisRA, double thisDec, double thisUTC,
     138             double nextRA, double nextDec, float &nextUTC);
     139
     140    // Subtract two UTCs (s).
     141    double utcDiff(double utc1, double utc2);
     142
     143    // Compute and apply the scan rate corrected for grid convergence.
     144    double cRA0, cDec0;
     145    void  scanRate(double ra0, double dec0,
     146                   double ra1, double dec1,
     147                   double ra2, double dec2, double dt,
     148                   double &raRate, double &decRate);
     149    void applyRate(double ra0, double dec0,
     150                   double ra1, double dec1,
     151                   double raRate, double decRate, double dt,
     152                   double &ra2, double &dec2);
     153    void eulerx(double lng0, double lat0, double phi0, double theta,
     154                double phi, double &lng1, double &lat1);
    128155};
    129156
Note: See TracChangeset for help on using the changeset viewer.