casa
$Rev:20696$
|
#include <PKSreader.h>
Public Member Functions | |
virtual | ~PKSreader () |
Destructor. | |
virtual Int | open (const String inName, const String antenna, Vector< Bool > &beams, Vector< Bool > &IFs, Vector< uInt > &nChan, Vector< uInt > &nPol, Vector< Bool > &haveXPol, Bool &haveBase, Bool &haveSpectra)=0 |
Open the dataset. | |
virtual Int | getHeader (String &observer, String &project, String &antName, Vector< Double > &antPosition, String &obsType, String &bunit, Float &equinox, String &dopplerFrame, Double &mjd, Double &refFreq, Double &bandwidth)=0 |
Get parameters describing the data. | |
virtual Int | getFreqInfo (Vector< Double > &startFreq, Vector< Double > &endFreq)=0 |
Get frequency parameters for each IF. | |
virtual uInt | select (const Vector< Bool > beamSel, const Vector< Bool > IFsel, const Vector< Int > startChan, const Vector< Int > endChan, const Vector< Int > refChan, const Bool getSpectra=True, const Bool getXPol=False, const Bool getFeedPos=False, const Bool getPointing=False, const Int coordSys=0)=0 |
Set data selection criteria. | |
virtual Int | findRange (Int &nRow, Int &nSel, Vector< Double > &timeSpan, Matrix< Double > &positions)=0 |
Find the range of the data selected in time and position. | |
virtual Int | read (Int &IFno, Vector< Float > &tsys, Vector< Float > &calFctr, Matrix< Float > &baseLin, Matrix< Float > &baseSub, Matrix< Float > &spectra, Matrix< uChar > &flagged)=0 |
Read the next data record. | |
**virtual Int | read (PKSrecord &pksrec)=0 |
virtual void | close ()=0 |
Close the input file. | |
Protected Attributes | |
Bool | cGetFeedPos |
Bool | cGetSpectra |
Bool | cGetXPol |
Bool | cGetPointing |
Int | cCoordSys |
Vector< uInt > | cNChan |
Vector< uInt > | cNPol |
Vector< Bool > | cHaveXPol |
Definition at line 103 of file PKSreader.h.
virtual PKSreader::~PKSreader | ( | ) | [inline, virtual] |
Destructor.
Definition at line 107 of file PKSreader.h.
virtual void PKSreader::close | ( | ) | [pure virtual] |
Close the input file.
Implemented in PKSMS2reader, and PKSFITSreader.
virtual Int PKSreader::findRange | ( | Int & | nRow, |
Int & | nSel, | ||
Vector< Double > & | timeSpan, | ||
Matrix< Double > & | positions | ||
) | [pure virtual] |
Find the range of the data selected in time and position.
Implemented in PKSFITSreader, and PKSMS2reader.
virtual Int PKSreader::getFreqInfo | ( | Vector< Double > & | startFreq, |
Vector< Double > & | endFreq | ||
) | [pure virtual] |
Get frequency parameters for each IF.
Implemented in PKSFITSreader, and PKSMS2reader.
virtual Int PKSreader::getHeader | ( | String & | observer, |
String & | project, | ||
String & | antName, | ||
Vector< Double > & | antPosition, | ||
String & | obsType, | ||
String & | bunit, | ||
Float & | equinox, | ||
String & | dopplerFrame, | ||
Double & | mjd, | ||
Double & | refFreq, | ||
Double & | bandwidth | ||
) | [pure virtual] |
Get parameters describing the data.
Implemented in PKSFITSreader, and PKSMS2reader.
virtual Int PKSreader::open | ( | const String | inName, |
const String | antenna, | ||
Vector< Bool > & | beams, | ||
Vector< Bool > & | IFs, | ||
Vector< uInt > & | nChan, | ||
Vector< uInt > & | nPol, | ||
Vector< Bool > & | haveXPol, | ||
Bool & | haveBase, | ||
Bool & | haveSpectra | ||
) | [pure virtual] |
Open the dataset.
Implemented in PKSFITSreader, and PKSMS2reader.
virtual Int PKSreader::read | ( | Int & | IFno, |
Vector< Float > & | tsys, | ||
Vector< Float > & | calFctr, | ||
Matrix< Float > & | baseLin, | ||
Matrix< Float > & | baseSub, | ||
Matrix< Float > & | spectra, | ||
Matrix< uChar > & | flagged | ||
) | [pure virtual] |
Read the next data record.
virtual Int read( Int &scanNo, Int &cycleNo, Double &mjd, Double &interval, String &fieldName, String &srcName, Vector<Double> &srcDir, Vector<Double> &srcPM, Double &srcVel, String &obsType, Int &IFno, Double &refFreq, Double &bandwidth, Double &freqInc, Vector<Double> &restFreq, Vector<Float> &tcal, String &tcalTime, Float &azimuth, Float &elevation, Float &parAngle, Float &focusAxi, Float &focusTan, Float &focusRot, Float &temperature, Float &pressure, Float &humidity, Float &windSpeed, Float &windAz, Int &refBeam, Int &beamNo, Vector<Double> &direction, Vector<Double> &scanRate, Vector<Float> &tsys, Vector<Float> &sigma, Vector<Float> &calFctr, Matrix<Float> &baseLin, Matrix<Float> &baseSub, Matrix<Float> &spectra, Matrix<uChar> &flagged, Complex &xCalFctr, Vector<Complex> &xPol) = 0; /** Read the next data record, just the basics.
Implemented in PKSMS2reader.
** virtual Int PKSreader::read | ( | PKSrecord & | pksrec | ) | [pure virtual] |
Implemented in PKSMS2reader, and PKSFITSreader.
virtual uInt PKSreader::select | ( | const Vector< Bool > | beamSel, |
const Vector< Bool > | IFsel, | ||
const Vector< Int > | startChan, | ||
const Vector< Int > | endChan, | ||
const Vector< Int > | refChan, | ||
const Bool | getSpectra = True , |
||
const Bool | getXPol = False , |
||
const Bool | getFeedPos = False , |
||
const Bool | getPointing = False , |
||
const Int | coordSys = 0 |
||
) | [pure virtual] |
Set data selection criteria.
Channel numbering is 1-relative, zero or negative channel numbers are taken to be offsets from the last channel. Coordinate system selection (only supported for SDFITS input): 0: equatorial (RA,Dec), 1: horizontal (Az,El), 2: feed-plane, 3: zenithal position angle of feed and elevation, (ZPA,El).
Implemented in PKSFITSreader, and PKSMS2reader.
Int PKSreader::cCoordSys [protected] |
Definition at line 230 of file PKSreader.h.
Bool PKSreader::cGetFeedPos [protected] |
Definition at line 229 of file PKSreader.h.
Bool PKSreader::cGetPointing [protected] |
Definition at line 229 of file PKSreader.h.
Bool PKSreader::cGetSpectra [protected] |
Definition at line 229 of file PKSreader.h.
Bool PKSreader::cGetXPol [protected] |
Definition at line 229 of file PKSreader.h.
Vector<Bool> PKSreader::cHaveXPol [protected] |
Definition at line 233 of file PKSreader.h.
Vector<uInt> PKSreader::cNChan [protected] |
Definition at line 232 of file PKSreader.h.
Vector<uInt> PKSreader::cNPol [protected] |
Definition at line 232 of file PKSreader.h.