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

Class to read Parkes Multibeam data from a FITS file. More...

#include <PKSFITSreader.h>

Inheritance diagram for PKSFITSreader:
PKSreader

List of all members.

Public Member Functions

 PKSFITSreader (const String fitsType, const Int retry=0, const Bool interpolate=True)
 Default constructor.
virtual ~PKSFITSreader ()
 Destructor.
virtual Int open (const String fitsName, const String antenna, Vector< Bool > &beams, Vector< Bool > &IFs, Vector< uInt > &nChan, Vector< uInt > &nPol, Vector< Bool > &haveXPol, Bool &haveBase, Bool &haveSpectra)
 Open the FITS file for reading.
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)
 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 void close ()
 Close the FITS file.

Private Member Functions

Char * trim (char *string)

Private Attributes

Int * cBeams
Int * cIFs
uInt cNBeam
uInt cNIF
MBrecord cMBrec
FITSreadercReader

Detailed Description

Class to read Parkes Multibeam data from a FITS file.

Definition at line 60 of file PKSFITSreader.h.


Constructor & Destructor Documentation

PKSFITSreader::PKSFITSreader ( const String  fitsType,
const Int  retry = 0,
const Bool  interpolate = True 
)

Default constructor.

virtual PKSFITSreader::~PKSFITSreader ( ) [virtual]

Destructor.


Member Function Documentation

virtual void PKSFITSreader::close ( ) [virtual]

Close the FITS file.

Implements PKSreader.

virtual Int PKSFITSreader::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 PKSFITSreader::getFreqInfo ( Vector< Double > &  startFreq,
Vector< Double > &  endFreq 
) [virtual]

Get frequency parameters for each IF.

Implements PKSreader.

virtual Int PKSFITSreader::getHeader ( String observer,
String project,
String antName,
Vector< Double > &  antPosition,
String obsType,
String bunit,
Float &  equinox,
String dopplerFrame,
Double &  mjd,
Double &  refFreq,
Double &  bandwidth 
) [virtual]

Get parameters describing the data.

Implements PKSreader.

virtual Int PKSFITSreader::open ( const String  fitsName,
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 FITS file for reading.

Implements PKSreader.

virtual Int PKSFITSreader::read ( PKSrecord pksrec) [virtual]

Read the next data record.

Implements PKSreader.

virtual uInt PKSFITSreader::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.

Char* PKSFITSreader::trim ( char *  string) [private]

Member Data Documentation

Int* PKSFITSreader::cBeams [private]

Definition at line 131 of file PKSFITSreader.h.

Int * PKSFITSreader::cIFs [private]

Definition at line 131 of file PKSFITSreader.h.

Definition at line 133 of file PKSFITSreader.h.

uInt PKSFITSreader::cNBeam [private]

Definition at line 132 of file PKSFITSreader.h.

uInt PKSFITSreader::cNIF [private]

Definition at line 132 of file PKSFITSreader.h.

Definition at line 134 of file PKSFITSreader.h.


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