Changeset 1452 for trunk/external/atnf/PKSIO/MBFITSreader.h
- Timestamp:
- 11/19/08 20:41:16 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external/atnf/PKSIO/MBFITSreader.h
r1427 r1452 27 27 //# AUSTRALIA 28 28 //# 29 //# $Id: MBFITSreader.h,v 19. 15 2008-06-26 02:14:36cal103 Exp $29 //# $Id: MBFITSreader.h,v 19.21 2008-11-17 06:33:10 cal103 Exp $ 30 30 //#--------------------------------------------------------------------------- 31 31 //# The MBFITSreader class reads single dish RPFITS files (such as Parkes … … 39 39 40 40 #include <atnf/PKSIO/FITSreader.h> 41 #include <atnf/PKSIO/PKSMBrecord.h> 41 #include <atnf/PKSIO/MBrecord.h> 42 43 using namespace std; 42 44 43 45 // <summary> … … 102 104 103 105 // Read the next data record. 104 virtual int read( PKSMBrecord &record);106 virtual int read(MBrecord &record); 105 107 106 108 // Close the RPFITS file. … … 112 114 float cUTC, cU, cV, cW, *cVis, *cWgt; 113 115 114 char cDateObs[1 0];116 char cDateObs[12]; 115 117 int *cBeamSel, *cChanOff, cFirst, *cIFSel, cInterp, cIntTime, cMBopen, 116 118 cMopra, cNBeamSel, cNBin, cRetry, cSUpos, *cXpolOff; … … 119 121 int cEOF, cEOS, cFlushBin, cFlushIF, cFlushing; 120 122 double *cPosUTC; 121 PKSMBrecord *cBuffer;123 MBrecord *cBuffer; 122 124 125 // Scan and cycle number bookkeeping. 123 126 int cCycleNo, cScanNo; 124 127 double cPrevUTC; … … 126 129 // Read the next data record from the RPFITS file. 127 130 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); 128 155 }; 129 156
Note: See TracChangeset
for help on using the changeset viewer.