casa
$Rev:20696$
|
ATNF class for SDFITS input using CFITSIO. More...
#include <SDFITSreader.h>
Public Member Functions | |
SDFITSreader () | |
Default constructor. | |
virtual | ~SDFITSreader () |
Destructor. | |
virtual int | open (char *sdname, int &nBeam, int *&beams, int &nIF, int *&IFs, int *&nChan, int *&nPol, int *&haveXPol, int &haveBase, int &haveSpectra, int &extraSysCal) |
Open an SDFITS file for reading. | |
virtual int | getHeader (char observer[32], char project[32], char telescope[32], double antPos[3], char obsMode[32], char bunit[32], float &equinox, char radecsys[32], char dopplerFrame[32], char datobs[32], double &utc, double &refFreq, double &bandwidth) |
Get parameters describing the data. | |
virtual int | getFreqInfo (int &nIF, double *&startFreq, double *&endFreq) |
Get frequency parameters for each IF. | |
virtual int | findRange (int &nRow, int &nSel, char dateSpan[2][32], double utcSpan[2], double *&positions) |
Find the range of the data selected in time and position. | |
virtual int | read (MBrecord &record) |
Read the next data record. | |
virtual void | close (void) |
Close the SDFITS file. | |
Private Types | |
enum | { SCAN, CYCLE, DATE_OBS, TIME, EXPOSURE, OBJECT, OBJ_RA, OBJ_DEC, RESTFRQ, OBSMODE, BEAM, IF, FqRefVal, FqDelt, FqRefPix, RA, DEC, TimeRefVal, TimeDelt, TimeRefPix, SCANRATE, TSYS, CALFCTR, XCALFCTR, BASELIN, BASESUB, DATA, FLAGGED, DATAXED, XPOLDATA, REFBEAM, TCAL, TCALTIME, AZIMUTH, ELEVATIO, PARANGLE, FOCUSAXI, FOCUSTAN, FOCUSROT, TAMBIENT, PRESSURE, HUMIDITY, WINDSPEE, WINDDIRE, STOKES, SIG, CAL, VFRAME, RVSYS, VELDEF, NDATA } |
Private Member Functions | |
void | log (LogOrigin origin, LogIO::Command cmd, const char *msg=0x0) |
Message handling. | |
void | findData (int iData, char *name, int type) |
void | findCol (char *name, int *colnum) |
int | readDim (int iData, long iRow, int *naxis, long naxes[]) |
int | readParm (char *name, int type, void *value) |
int | readData (char *name, int type, long iRow, void *value) |
int | readData (int iData, long iRow, void *value) |
int | readCol (int iData, void *value) |
int | readTime (long iRow, int iPix, char *datobs, double &utc) |
int | alfaCal (short iBeam, short iIF, short iPol) |
float | alfaGain (float zd) |
Private Attributes | |
int | cCycleNo |
int | cExtraSysCal |
int | cNAxes |
int | cStatus |
long | cBeamAxis |
long | cDecAxis |
long | cFreqAxis |
long | cNAxis [5] |
long | cNAxisTime |
long | cNRow |
long | cRaAxis |
long | cRow |
long | cStokesAxis |
long | cTimeAxis |
long | cTimeIdx |
double | cLastUTC |
fitsfile * | cSDptr |
class FITSparm * | cData |
int | cBeam_1rel |
These are to differentiate 0-, and 1-relative beam and IF numbering. | |
int | cIF_1rel |
int * | cPols |
for GBT | |
int | cALFA |
int | cALFA_BD |
int | cALFA_CIMA |
int | cALFAscan |
int | cScanNo |
float | cALFAacc |
int | cGBT |
These are for GBT data. | |
int | cFirstScanNo |
double | cGLastUTC [4] |
int | cGLastScan [4] |
int | cGCycleNo [4] |
Static Private Attributes | |
static int | sInit |
These are for ALFA data: "BDFITS" or "CIMAFITS". | |
static int | sReset |
static int(* | sALFAcalNon )[2] |
static int((* | sALFAcalNoff )[2] |
static float(* | sALFAcal )[2] |
static float((* | sALFAcalOn )[2] |
static float(((* | sALFAcalOff )[2] |
anonymous enum [private] |
Definition at line 129 of file SDFITSreader.h.
Default constructor.
virtual SDFITSreader::~SDFITSreader | ( | ) | [virtual] |
Destructor.
int SDFITSreader::alfaCal | ( | short | iBeam, |
short | iIF, | ||
short | iPol | ||
) | [private] |
float SDFITSreader::alfaGain | ( | float | zd | ) | [private] |
virtual void SDFITSreader::close | ( | void | ) | [virtual] |
Close the SDFITS file.
Implements FITSreader.
void SDFITSreader::findCol | ( | char * | name, |
int * | colnum | ||
) | [private] |
void SDFITSreader::findData | ( | int | iData, |
char * | name, | ||
int | type | ||
) | [private] |
virtual int SDFITSreader::findRange | ( | int & | nRow, |
int & | nSel, | ||
char | dateSpan[2][32], | ||
double | utcSpan[2], | ||
double *& | positions | ||
) | [virtual] |
Find the range of the data selected in time and position.
Implements FITSreader.
virtual int SDFITSreader::getFreqInfo | ( | int & | nIF, |
double *& | startFreq, | ||
double *& | endFreq | ||
) | [virtual] |
Get frequency parameters for each IF.
Implements FITSreader.
virtual int SDFITSreader::getHeader | ( | char | observer[32], |
char | project[32], | ||
char | telescope[32], | ||
double | antPos[3], | ||
char | obsMode[32], | ||
char | bunit[32], | ||
float & | equinox, | ||
char | radecsys[32], | ||
char | dopplerFrame[32], | ||
char | datobs[32], | ||
double & | utc, | ||
double & | refFreq, | ||
double & | bandwidth | ||
) | [virtual] |
Get parameters describing the data.
Implements FITSreader.
void SDFITSreader::log | ( | LogOrigin | origin, |
LogIO::Command | cmd, | ||
const char * | msg = 0x0 |
||
) | [private] |
Message handling.
virtual int SDFITSreader::open | ( | char * | sdname, |
int & | nBeam, | ||
int *& | beams, | ||
int & | nIF, | ||
int *& | IFs, | ||
int *& | nChan, | ||
int *& | nPol, | ||
int *& | haveXPol, | ||
int & | haveBase, | ||
int & | haveSpectra, | ||
int & | extraSysCal | ||
) | [virtual] |
Open an SDFITS file for reading.
Implements FITSreader.
virtual int SDFITSreader::read | ( | MBrecord & | record | ) | [virtual] |
Read the next data record.
Implements FITSreader.
int SDFITSreader::readCol | ( | int | iData, |
void * | value | ||
) | [private] |
int SDFITSreader::readData | ( | char * | name, |
int | type, | ||
long | iRow, | ||
void * | value | ||
) | [private] |
int SDFITSreader::readData | ( | int | iData, |
long | iRow, | ||
void * | value | ||
) | [private] |
int SDFITSreader::readDim | ( | int | iData, |
long | iRow, | ||
int * | naxis, | ||
long | naxes[] | ||
) | [private] |
int SDFITSreader::readParm | ( | char * | name, |
int | type, | ||
void * | value | ||
) | [private] |
int SDFITSreader::readTime | ( | long | iRow, |
int | iPix, | ||
char * | datobs, | ||
double & | utc | ||
) | [private] |
int SDFITSreader::cALFA [private] |
Definition at line 155 of file SDFITSreader.h.
int SDFITSreader::cALFA_BD [private] |
Definition at line 155 of file SDFITSreader.h.
int SDFITSreader::cALFA_CIMA [private] |
Definition at line 155 of file SDFITSreader.h.
float SDFITSreader::cALFAacc [private] |
Definition at line 156 of file SDFITSreader.h.
int SDFITSreader::cALFAscan [private] |
Definition at line 155 of file SDFITSreader.h.
int SDFITSreader::cBeam_1rel [private] |
These are to differentiate 0-, and 1-relative beam and IF numbering.
Definition at line 124 of file SDFITSreader.h.
long SDFITSreader::cBeamAxis [private] |
Definition at line 117 of file SDFITSreader.h.
int SDFITSreader::cCycleNo [private] |
Definition at line 116 of file SDFITSreader.h.
class FITSparm* SDFITSreader::cData [private] |
Definition at line 121 of file SDFITSreader.h.
long SDFITSreader::cDecAxis [private] |
Definition at line 117 of file SDFITSreader.h.
int SDFITSreader::cExtraSysCal [private] |
Definition at line 116 of file SDFITSreader.h.
int SDFITSreader::cFirstScanNo [private] |
Definition at line 161 of file SDFITSreader.h.
long SDFITSreader::cFreqAxis [private] |
Definition at line 117 of file SDFITSreader.h.
int SDFITSreader::cGBT [private] |
These are for GBT data.
Definition at line 161 of file SDFITSreader.h.
int SDFITSreader::cGCycleNo[4] [private] |
Definition at line 164 of file SDFITSreader.h.
int SDFITSreader::cGLastScan[4] [private] |
Definition at line 163 of file SDFITSreader.h.
double SDFITSreader::cGLastUTC[4] [private] |
Definition at line 162 of file SDFITSreader.h.
int SDFITSreader::cIF_1rel [private] |
Definition at line 124 of file SDFITSreader.h.
double SDFITSreader::cLastUTC [private] |
Definition at line 119 of file SDFITSreader.h.
int SDFITSreader::cNAxes [private] |
Definition at line 116 of file SDFITSreader.h.
long SDFITSreader::cNAxis[5] [private] |
Definition at line 117 of file SDFITSreader.h.
long SDFITSreader::cNAxisTime [private] |
Definition at line 117 of file SDFITSreader.h.
long SDFITSreader::cNRow [private] |
Definition at line 117 of file SDFITSreader.h.
int* SDFITSreader::cPols [private] |
for GBT
Definition at line 127 of file SDFITSreader.h.
long SDFITSreader::cRaAxis [private] |
Definition at line 117 of file SDFITSreader.h.
long SDFITSreader::cRow [private] |
Definition at line 117 of file SDFITSreader.h.
int SDFITSreader::cScanNo [private] |
Definition at line 155 of file SDFITSreader.h.
fitsfile* SDFITSreader::cSDptr [private] |
Definition at line 120 of file SDFITSreader.h.
int SDFITSreader::cStatus [private] |
Definition at line 116 of file SDFITSreader.h.
long SDFITSreader::cStokesAxis [private] |
Definition at line 117 of file SDFITSreader.h.
long SDFITSreader::cTimeAxis [private] |
Definition at line 117 of file SDFITSreader.h.
long SDFITSreader::cTimeIdx [private] |
Definition at line 117 of file SDFITSreader.h.
float(* SDFITSreader::sALFAcal)[2] [static, private] |
Definition at line 153 of file SDFITSreader.h.
int((* SDFITSreader::sALFAcalNoff)[2] [static, private] |
Definition at line 152 of file SDFITSreader.h.
int(* SDFITSreader::sALFAcalNon)[2] [static, private] |
Definition at line 152 of file SDFITSreader.h.
float(((* SDFITSreader::sALFAcalOff)[2] [static, private] |
Definition at line 153 of file SDFITSreader.h.
float((* SDFITSreader::sALFAcalOn)[2] [static, private] |
Definition at line 153 of file SDFITSreader.h.
int SDFITSreader::sInit [static, private] |
These are for ALFA data: "BDFITS" or "CIMAFITS".
Statics are required for CIMAFITS v2.0 because CAL ON/OFF data is split into separate files.
Definition at line 151 of file SDFITSreader.h.
int SDFITSreader::sReset [static, private] |
Definition at line 151 of file SDFITSreader.h.