casa
$Rev:20696$
|
Class to read Parkes Multibeam data from a v2 MS. More...
#include <PKSMS2reader.h>
Public Member Functions | |
PKSMS2reader () | |
Default constructor. | |
virtual | ~PKSMS2reader () |
Destructor. | |
virtual Int | open (const String msName, const String antenna, Vector< Bool > &beams, Vector< Bool > &IFs, Vector< uInt > &nChan, Vector< uInt > &nPol, Vector< Bool > &haveXPol, Bool &haveBase, Bool &haveSpectra) |
Open the MS for reading. | |
virtual Int | getHeader (String &observer, String &project, String &antName, Vector< Double > &antPosition, String &obsMode, String &bunit, Float &equinox, String &dopplerFrame, Double &mjd, Double &refFreq, Double &bandwidth) |
Get parameters describing the data. | |
virtual Int | getFreqInfo (Vector< Double > &startFreq, Vector< Double > &endFreq) |
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) |
Set data selection criteria. | |
virtual Int | findRange (Int &nRow, Int &nSel, Vector< Double > &timeSpan, Matrix< Double > &positions) |
Find the range of the data selected in time and position. | |
virtual Int | read (PKSrecord &pksrec) |
Read the next data record. | |
virtual Int | read (Int &IFno, Vector< Float > &tsys, Vector< Float > &calFctr, Matrix< Float > &baseLin, Matrix< Float > &baseSub, Matrix< Float > &spectra, Matrix< uChar > &flagged) |
Read the next data record, just the basics. | |
virtual void | close (void) |
Close the MS. | |
Private Member Functions | |
Vector< String > | splitAntennaSelectionString (const String s) |
void | setupAntennaList (const String s) |
Private Attributes | |
Bool | cHaveBaseLin |
Bool | cHaveCalFctr |
Bool | cHaveSrcVel |
Bool | cHaveTsys |
Bool | cHaveXCalFctr |
Bool | cMSopen |
Bool | cHaveTcal |
Bool | cHaveDataCol |
Bool | cALMA |
Bool | cHaveSysCal |
Bool | cHaveCorrectedDataCol |
Int | cCycleNo |
Int | cIdx |
Int | cNRow |
Int | cScanNo |
Double | cTime |
Double | lastmjd |
Vector< Int > | cEndChan |
Vector< Int > | cRefChan |
Vector< Int > | cStartChan |
Vector< Bool > | cBeams |
Vector< Bool > | cIFs |
Vector< Slicer > | cDataSel |
String | cDirRef |
String | cTelName |
MeasurementSet | cPKSMS |
Table | cSysCalTab |
Table | tmptab |
Table | tmptab2 |
Vector< Int > | cAntId |
Vector<String> cAntenna;. | |
ROScalarColumn< Int > | cScanNoCol |
ROScalarColumn< Double > | cTimeCol |
ROScalarColumn< Double > | cIntervalCol |
ROScalarColumn< Int > | cFieldIdCol |
ROScalarColumn< String > | cFieldNameCol |
ROArrayColumn< Double > | cFieldDelayDirCol |
ROScalarColumn< Int > | cSrcIdCol |
ROScalarColumn< Int > | cSrcId2Col |
ROScalarColumn< String > | cSrcNameCol |
ROArrayColumn< Double > | cSrcDirCol |
ROArrayColumn< Double > | cSrcPMCol |
ROArrayColumn< Double > | cSrcVelCol |
ROScalarColumn< Int > | cStateIdCol |
ROScalarColumn< Double > | cCalCol |
ROScalarColumn< String > | cObsModeCol |
ROArrayColumn< Double > | cSrcRestFrqCol |
ROScalarColumn< Int > | cDataDescIdCol |
ROScalarColumn< Int > | cSpWinIdCol |
ROArrayColumn< Double > | cChanFreqCol |
ROScalarColumn< Double > | cTotBWCol |
ROScalarColumn< Double > | cWeatherTimeCol |
ROScalarColumn< Float > | cTemperatureCol |
ROScalarColumn< Float > | cPressureCol |
ROScalarColumn< Float > | cHumidityCol |
ROArrayColumn< Float > | cTcalCol |
ROScalarColumn< Int > | cBeamNoCol |
ROArrayColumn< Double > | cPointingCol |
ROScalarColumn< Double > | cPointingTimeCol |
ROArrayColumn< Float > | cTsysCol |
ROArrayColumn< Float > | cSigmaCol |
ROArrayColumn< Float > | cCalFctrCol |
ROArrayColumn< Float > | cBaseLinCol |
ROArrayColumn< Float > | cBaseSubCol |
ROArrayColumn< Float > | cFloatDataCol |
ROArrayColumn< Bool > | cFlagCol |
ROScalarColumn< Bool > | cFlagRowCol |
ROScalarColumn< Complex > | cXCalFctrCol |
ROArrayColumn< Complex > | cDataCol |
ROArrayColumn< Complex > | cCorrectedDataCol |
ROScalarColumn< Int > | cNumReceptorCol |
ROScalarColumn< Bool > | cSigStateCol |
ROScalarColumn< Bool > | cRefStateCol |
Default constructor.
virtual PKSMS2reader::~PKSMS2reader | ( | ) | [virtual] |
Destructor.
virtual void PKSMS2reader::close | ( | void | ) | [virtual] |
Close the MS.
Implements PKSreader.
virtual Int PKSMS2reader::findRange | ( | Int & | nRow, |
Int & | nSel, | ||
Vector< Double > & | timeSpan, | ||
Matrix< Double > & | positions | ||
) | [virtual] |
Find the range of the data selected in time and position.
Implements PKSreader.
virtual Int PKSMS2reader::getFreqInfo | ( | Vector< Double > & | startFreq, |
Vector< Double > & | endFreq | ||
) | [virtual] |
Get frequency parameters for each IF.
Implements PKSreader.
virtual Int PKSMS2reader::open | ( | const String | msName, |
const String | antenna, | ||
Vector< Bool > & | beams, | ||
Vector< Bool > & | IFs, | ||
Vector< uInt > & | nChan, | ||
Vector< uInt > & | nPol, | ||
Vector< Bool > & | haveXPol, | ||
Bool & | haveBase, | ||
Bool & | haveSpectra | ||
) | [virtual] |
Open the MS for reading.
Implements PKSreader.
virtual Int PKSMS2reader::read | ( | PKSrecord & | pksrec | ) | [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 &obsMode, 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);
Implements PKSreader.
virtual Int PKSMS2reader::read | ( | Int & | IFno, |
Vector< Float > & | tsys, | ||
Vector< Float > & | calFctr, | ||
Matrix< Float > & | baseLin, | ||
Matrix< Float > & | baseSub, | ||
Matrix< Float > & | spectra, | ||
Matrix< uChar > & | flagged | ||
) | [virtual] |
Read the next data record, just the basics.
Implements PKSreader.
virtual uInt PKSMS2reader::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 |
||
) | [virtual] |
Set data selection criteria.
Channel numbering is 1-relative, zero or negative channel numbers are taken to be offsets from the last channel.
Implements PKSreader.
void PKSMS2reader::setupAntennaList | ( | const String | s | ) | [private] |
Vector<String> PKSMS2reader::splitAntennaSelectionString | ( | const String | s | ) | [private] |
Bool PKSMS2reader::cALMA [private] |
Definition at line 186 of file PKSMS2reader.h.
Vector<Int> PKSMS2reader::cAntId [private] |
Vector<String> cAntenna;.
Definition at line 198 of file PKSMS2reader.h.
ROArrayColumn<Float> PKSMS2reader::cBaseLinCol [private] |
Definition at line 231 of file PKSMS2reader.h.
ROArrayColumn<Float> PKSMS2reader::cBaseSubCol [private] |
Definition at line 232 of file PKSMS2reader.h.
ROScalarColumn<Int> PKSMS2reader::cBeamNoCol [private] |
Definition at line 225 of file PKSMS2reader.h.
Vector<Bool> PKSMS2reader::cBeams [private] |
Definition at line 191 of file PKSMS2reader.h.
ROScalarColumn<Double> PKSMS2reader::cCalCol [private] |
Definition at line 213 of file PKSMS2reader.h.
ROArrayColumn<Float> PKSMS2reader::cCalFctrCol [private] |
Definition at line 230 of file PKSMS2reader.h.
ROArrayColumn<Double> PKSMS2reader::cChanFreqCol [private] |
Definition at line 218 of file PKSMS2reader.h.
ROArrayColumn<Complex> PKSMS2reader::cCorrectedDataCol [private] |
Definition at line 238 of file PKSMS2reader.h.
Int PKSMS2reader::cCycleNo [private] |
Definition at line 188 of file PKSMS2reader.h.
ROArrayColumn<Complex> PKSMS2reader::cDataCol [private] |
Definition at line 237 of file PKSMS2reader.h.
ROScalarColumn<Int> PKSMS2reader::cDataDescIdCol [private] |
Definition at line 216 of file PKSMS2reader.h.
Vector<Slicer> PKSMS2reader::cDataSel [private] |
Definition at line 192 of file PKSMS2reader.h.
String PKSMS2reader::cDirRef [private] |
Definition at line 193 of file PKSMS2reader.h.
Vector<Int> PKSMS2reader::cEndChan [private] |
Definition at line 190 of file PKSMS2reader.h.
ROArrayColumn<Double> PKSMS2reader::cFieldDelayDirCol [private] |
Definition at line 205 of file PKSMS2reader.h.
ROScalarColumn<Int> PKSMS2reader::cFieldIdCol [private] |
Definition at line 203 of file PKSMS2reader.h.
ROScalarColumn<String> PKSMS2reader::cFieldNameCol [private] |
Definition at line 204 of file PKSMS2reader.h.
ROArrayColumn<Bool> PKSMS2reader::cFlagCol [private] |
Definition at line 234 of file PKSMS2reader.h.
ROScalarColumn<Bool> PKSMS2reader::cFlagRowCol [private] |
Definition at line 235 of file PKSMS2reader.h.
ROArrayColumn<Float> PKSMS2reader::cFloatDataCol [private] |
Definition at line 233 of file PKSMS2reader.h.
Bool PKSMS2reader::cHaveBaseLin [private] |
Definition at line 186 of file PKSMS2reader.h.
Bool PKSMS2reader::cHaveCalFctr [private] |
Definition at line 186 of file PKSMS2reader.h.
Bool PKSMS2reader::cHaveCorrectedDataCol [private] |
Definition at line 186 of file PKSMS2reader.h.
Bool PKSMS2reader::cHaveDataCol [private] |
Definition at line 186 of file PKSMS2reader.h.
Bool PKSMS2reader::cHaveSrcVel [private] |
Definition at line 186 of file PKSMS2reader.h.
Bool PKSMS2reader::cHaveSysCal [private] |
Definition at line 186 of file PKSMS2reader.h.
Bool PKSMS2reader::cHaveTcal [private] |
Definition at line 186 of file PKSMS2reader.h.
Bool PKSMS2reader::cHaveTsys [private] |
Definition at line 186 of file PKSMS2reader.h.
Bool PKSMS2reader::cHaveXCalFctr [private] |
Definition at line 186 of file PKSMS2reader.h.
ROScalarColumn<Float> PKSMS2reader::cHumidityCol [private] |
Definition at line 223 of file PKSMS2reader.h.
Int PKSMS2reader::cIdx [private] |
Definition at line 188 of file PKSMS2reader.h.
Vector<Bool> PKSMS2reader::cIFs [private] |
Definition at line 191 of file PKSMS2reader.h.
ROScalarColumn<Double> PKSMS2reader::cIntervalCol [private] |
Definition at line 202 of file PKSMS2reader.h.
Bool PKSMS2reader::cMSopen [private] |
Definition at line 186 of file PKSMS2reader.h.
Int PKSMS2reader::cNRow [private] |
Definition at line 188 of file PKSMS2reader.h.
ROScalarColumn<Int> PKSMS2reader::cNumReceptorCol [private] |
Definition at line 239 of file PKSMS2reader.h.
ROScalarColumn<String> PKSMS2reader::cObsModeCol [private] |
Definition at line 214 of file PKSMS2reader.h.
MeasurementSet PKSMS2reader::cPKSMS [private] |
Definition at line 194 of file PKSMS2reader.h.
ROArrayColumn<Double> PKSMS2reader::cPointingCol [private] |
Definition at line 226 of file PKSMS2reader.h.
ROScalarColumn<Double> PKSMS2reader::cPointingTimeCol [private] |
Definition at line 227 of file PKSMS2reader.h.
ROScalarColumn<Float> PKSMS2reader::cPressureCol [private] |
Definition at line 222 of file PKSMS2reader.h.
Vector<Int> PKSMS2reader::cRefChan [private] |
Definition at line 190 of file PKSMS2reader.h.
ROScalarColumn<Bool> PKSMS2reader::cRefStateCol [private] |
Definition at line 241 of file PKSMS2reader.h.
Int PKSMS2reader::cScanNo [private] |
Definition at line 188 of file PKSMS2reader.h.
ROScalarColumn<Int> PKSMS2reader::cScanNoCol [private] |
Definition at line 200 of file PKSMS2reader.h.
ROArrayColumn<Float> PKSMS2reader::cSigmaCol [private] |
Definition at line 229 of file PKSMS2reader.h.
ROScalarColumn<Bool> PKSMS2reader::cSigStateCol [private] |
Definition at line 240 of file PKSMS2reader.h.
ROScalarColumn<Int> PKSMS2reader::cSpWinIdCol [private] |
Definition at line 217 of file PKSMS2reader.h.
ROArrayColumn<Double> PKSMS2reader::cSrcDirCol [private] |
Definition at line 209 of file PKSMS2reader.h.
ROScalarColumn<Int> PKSMS2reader::cSrcId2Col [private] |
Definition at line 207 of file PKSMS2reader.h.
ROScalarColumn<Int> PKSMS2reader::cSrcIdCol [private] |
Definition at line 206 of file PKSMS2reader.h.
ROScalarColumn<String> PKSMS2reader::cSrcNameCol [private] |
Definition at line 208 of file PKSMS2reader.h.
ROArrayColumn<Double> PKSMS2reader::cSrcPMCol [private] |
Definition at line 210 of file PKSMS2reader.h.
ROArrayColumn<Double> PKSMS2reader::cSrcRestFrqCol [private] |
Definition at line 215 of file PKSMS2reader.h.
ROArrayColumn<Double> PKSMS2reader::cSrcVelCol [private] |
Definition at line 211 of file PKSMS2reader.h.
Vector<Int> PKSMS2reader::cStartChan [private] |
Definition at line 190 of file PKSMS2reader.h.
ROScalarColumn<Int> PKSMS2reader::cStateIdCol [private] |
Definition at line 212 of file PKSMS2reader.h.
Table PKSMS2reader::cSysCalTab [private] |
Definition at line 195 of file PKSMS2reader.h.
ROArrayColumn<Float> PKSMS2reader::cTcalCol [private] |
Definition at line 224 of file PKSMS2reader.h.
String PKSMS2reader::cTelName [private] |
Definition at line 193 of file PKSMS2reader.h.
ROScalarColumn<Float> PKSMS2reader::cTemperatureCol [private] |
Definition at line 221 of file PKSMS2reader.h.
Double PKSMS2reader::cTime [private] |
Definition at line 189 of file PKSMS2reader.h.
ROScalarColumn<Double> PKSMS2reader::cTimeCol [private] |
Definition at line 201 of file PKSMS2reader.h.
ROScalarColumn<Double> PKSMS2reader::cTotBWCol [private] |
Definition at line 219 of file PKSMS2reader.h.
ROArrayColumn<Float> PKSMS2reader::cTsysCol [private] |
Definition at line 228 of file PKSMS2reader.h.
ROScalarColumn<Double> PKSMS2reader::cWeatherTimeCol [private] |
Definition at line 220 of file PKSMS2reader.h.
ROScalarColumn<Complex> PKSMS2reader::cXCalFctrCol [private] |
Definition at line 236 of file PKSMS2reader.h.
Double PKSMS2reader::lastmjd [private] |
Definition at line 189 of file PKSMS2reader.h.
Table PKSMS2reader::tmptab [private] |
Definition at line 195 of file PKSMS2reader.h.
Table PKSMS2reader::tmptab2 [private] |
Definition at line 195 of file PKSMS2reader.h.