casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
PKSMS2reader Class Reference

Class to read Parkes Multibeam data from a v2 MS. More...

#include <PKSMS2reader.h>

Inheritance diagram for PKSMS2reader:
PKSreader

List of all members.

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< StringsplitAntennaSelectionString (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< StringcFieldNameCol
ROArrayColumn< Double > cFieldDelayDirCol
ROScalarColumn< Int > cSrcIdCol
ROScalarColumn< Int > cSrcId2Col
ROScalarColumn< StringcSrcNameCol
ROArrayColumn< Double > cSrcDirCol
ROArrayColumn< Double > cSrcPMCol
ROArrayColumn< Double > cSrcVelCol
ROScalarColumn< Int > cStateIdCol
ROScalarColumn< Double > cCalCol
ROScalarColumn< StringcObsModeCol
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

Detailed Description

Class to read Parkes Multibeam data from a v2 MS.

Definition at line 58 of file PKSMS2reader.h.


Constructor & Destructor Documentation

Default constructor.

virtual PKSMS2reader::~PKSMS2reader ( ) [virtual]

Destructor.


Member Function Documentation

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::getHeader ( String observer,
String project,
String antName,
Vector< Double > &  antPosition,
String obsMode,
String bunit,
Float &  equinox,
String dopplerFrame,
Double &  mjd,
Double &  refFreq,
Double &  bandwidth 
) [virtual]

Get parameters describing the data.

Parameters:
dopplerFrameString &freqRef,

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]

Member Data Documentation

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.

Definition at line 231 of file PKSMS2reader.h.

Definition at line 232 of file PKSMS2reader.h.

Definition at line 225 of file PKSMS2reader.h.

Vector<Bool> PKSMS2reader::cBeams [private]

Definition at line 191 of file PKSMS2reader.h.

Definition at line 213 of file PKSMS2reader.h.

Definition at line 230 of file PKSMS2reader.h.

Definition at line 218 of file PKSMS2reader.h.

Definition at line 238 of file PKSMS2reader.h.

Int PKSMS2reader::cCycleNo [private]

Definition at line 188 of file PKSMS2reader.h.

Definition at line 237 of file PKSMS2reader.h.

Definition at line 216 of file PKSMS2reader.h.

Vector<Slicer> PKSMS2reader::cDataSel [private]

Definition at line 192 of file PKSMS2reader.h.

Definition at line 193 of file PKSMS2reader.h.

Vector<Int> PKSMS2reader::cEndChan [private]

Definition at line 190 of file PKSMS2reader.h.

Definition at line 205 of file PKSMS2reader.h.

Definition at line 203 of file PKSMS2reader.h.

Definition at line 204 of file PKSMS2reader.h.

Definition at line 234 of file PKSMS2reader.h.

Definition at line 235 of file PKSMS2reader.h.

Definition at line 233 of file PKSMS2reader.h.

Definition at line 186 of file PKSMS2reader.h.

Definition at line 186 of file PKSMS2reader.h.

Definition at line 186 of file PKSMS2reader.h.

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.

Definition at line 186 of file PKSMS2reader.h.

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.

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.

Definition at line 239 of file PKSMS2reader.h.

Definition at line 214 of file PKSMS2reader.h.

MeasurementSet PKSMS2reader::cPKSMS [private]

Definition at line 194 of file PKSMS2reader.h.

Definition at line 226 of file PKSMS2reader.h.

Definition at line 227 of file PKSMS2reader.h.

Definition at line 222 of file PKSMS2reader.h.

Vector<Int> PKSMS2reader::cRefChan [private]

Definition at line 190 of file PKSMS2reader.h.

Definition at line 241 of file PKSMS2reader.h.

Int PKSMS2reader::cScanNo [private]

Definition at line 188 of file PKSMS2reader.h.

Definition at line 200 of file PKSMS2reader.h.

Definition at line 229 of file PKSMS2reader.h.

Definition at line 240 of file PKSMS2reader.h.

Definition at line 217 of file PKSMS2reader.h.

Definition at line 209 of file PKSMS2reader.h.

Definition at line 207 of file PKSMS2reader.h.

Definition at line 206 of file PKSMS2reader.h.

Definition at line 208 of file PKSMS2reader.h.

Definition at line 210 of file PKSMS2reader.h.

Definition at line 215 of file PKSMS2reader.h.

Definition at line 211 of file PKSMS2reader.h.

Vector<Int> PKSMS2reader::cStartChan [private]

Definition at line 190 of file PKSMS2reader.h.

Definition at line 212 of file PKSMS2reader.h.

Table PKSMS2reader::cSysCalTab [private]

Definition at line 195 of file PKSMS2reader.h.

Definition at line 224 of file PKSMS2reader.h.

Definition at line 193 of file PKSMS2reader.h.

Definition at line 221 of file PKSMS2reader.h.

Double PKSMS2reader::cTime [private]

Definition at line 189 of file PKSMS2reader.h.

Definition at line 201 of file PKSMS2reader.h.

Definition at line 219 of file PKSMS2reader.h.

Definition at line 228 of file PKSMS2reader.h.

Definition at line 220 of file PKSMS2reader.h.

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.


The documentation for this class was generated from the following file: