casa::NRO2MSReader Class Reference

#include <NRO2MSReader.h>

Inheritance diagram for casa::NRO2MSReader:
casa::ReaderInterface casa::NonCopyable< ReaderInterface >

List of all members.

Public Member Functions

 NRO2MSReader (std::string const &scantable_name)
virtual ~NRO2MSReader ()
virtual size_t getNumberOfRows ()
 get number of rows
virtual MDirection::Types getDirectionFrame ()
virtual Bool isFloatData () const
virtual Bool getObservationRow (sdfiller::ObservationRecord &record)
 to get OBSERVATION table
virtual Bool getAntennaRow (sdfiller::AntennaRecord &record)
 to get ANTENNA table
virtual Bool getProcessorRow (sdfiller::ProcessorRecord &record)
 to get PROCESSOR table
virtual Bool getSourceRow (sdfiller::SourceRecord &record)
 to get SOURCE table
virtual Bool getFieldRow (sdfiller::FieldRecord &record)
 to get FIELD table
virtual Bool getSpectralWindowRow (sdfiller::SpectralWindowRecord &record)
 to get SOURCE table
virtual Bool getData (size_t irow, sdfiller::DataRecord &record)
 for DataAccumulator
virtual int getNROArraySize ()
virtual int getNRONumBeam ()
virtual int getNRONumPol ()
virtual int getNRONumSpw ()

Protected Member Functions

void initializeSpecific ()
void finalizeSpecific ()

Private Member Functions

void readObsHeader ()
void readScanData (int const irow, sdfiller::NRODataScanData &data)
void checkEndian ()
template<typename T >
void convertEndian (T &value)
template<typename T >
void readHeader (T &v)
template<typename T >
void readHeader (T *v, size_t numArray)
void readHeader (string &v, size_t strLength)
void readHeader (string *v, size_t strLength, size_t numArray)
double getMJD (string const &time)
double getIntMiddleTimeSec (sdfiller::NRODataScanData const &data)
double getIntStartTimeSec (int const scanno)
double getIntEndTimeSec (int const scanno)
void getFullTimeRange ()
double getMiddleOfTimeRangeSec ()
double getRestFrequency (int const spwno)
string convertVRefName (string const &vref0)
std::vector< double > getSpectrum (int const irow, sdfiller::NRODataScanData const &data)
Int getPolNo (string const &rx)
Bool getAntennaRowImpl (sdfiller::AntennaRecord &record)
Bool getFieldRowImpl (sdfiller::FieldRecord &record)
Bool getObservationRowImpl (sdfiller::ObservationRecord &record)
Bool getProcessorRowImpl (sdfiller::ProcessorRecord &record)
Bool getSourceRowImpl (sdfiller::SourceRecord &record)
Bool getSpectralWindowRowImpl (sdfiller::SpectralWindowRecord &record)
template<class _Record >
Bool noMoreRowImpl (_Record &)

Private Attributes

FILE * fp_
sdfiller::NRODataObsHeader obs_header_
bool same_endian_
int beam_id_counter_
int source_spw_id_counter_
int spw_id_counter_
Vector< Double > time_range_sec_
int const len_obs_header_
Double const posx_
Double const posy_
Double const posz_
Bool(NRO2MSReader::* get_antenna_row_ )(sdfiller::AntennaRecord &)
Bool(NRO2MSReader::* get_field_row_ )(sdfiller::FieldRecord &)
Bool(NRO2MSReader::* get_observation_row_ )(sdfiller::ObservationRecord &)
Bool(NRO2MSReader::* get_processor_row_ )(sdfiller::ProcessorRecord &)
Bool(NRO2MSReader::* get_source_row_ )(sdfiller::SourceRecord &)
Bool(NRO2MSReader::* get_spw_row_ )(sdfiller::SpectralWindowRecord &)

Detailed Description

Definition at line 23 of file NRO2MSReader.h.


Constructor & Destructor Documentation

casa::NRO2MSReader::NRO2MSReader ( std::string const &  scantable_name  ) 
virtual casa::NRO2MSReader::~NRO2MSReader (  )  [virtual]

Member Function Documentation

void casa::NRO2MSReader::checkEndian (  )  [private]
template<typename T >
void casa::NRO2MSReader::convertEndian ( T &  value  )  [inline, private]

Definition at line 112 of file NRO2MSReader.h.

References first.

Referenced by readHeader().

string casa::NRO2MSReader::convertVRefName ( string const &  vref0  )  [private]
void casa::NRO2MSReader::finalizeSpecific (  )  [protected, virtual]

Implements casa::ReaderInterface.

virtual Bool casa::NRO2MSReader::getAntennaRow ( sdfiller::AntennaRecord record  )  [inline, virtual]

to get ANTENNA table

Implements casa::ReaderInterface.

Definition at line 46 of file NRO2MSReader.h.

References get_antenna_row_, POST_END, and POST_START.

Bool casa::NRO2MSReader::getAntennaRowImpl ( sdfiller::AntennaRecord record  )  [private]
virtual Bool casa::NRO2MSReader::getData ( size_t  irow,
sdfiller::DataRecord record 
) [virtual]

for DataAccumulator

Implements casa::ReaderInterface.

virtual MDirection::Types casa::NRO2MSReader::getDirectionFrame (  )  [virtual]
virtual Bool casa::NRO2MSReader::getFieldRow ( sdfiller::FieldRecord record  )  [inline, virtual]

to get FIELD table

Implements casa::ReaderInterface.

Definition at line 70 of file NRO2MSReader.h.

References get_field_row_, POST_END, and POST_START.

Bool casa::NRO2MSReader::getFieldRowImpl ( sdfiller::FieldRecord record  )  [private]
void casa::NRO2MSReader::getFullTimeRange (  )  [private]
double casa::NRO2MSReader::getIntEndTimeSec ( int const   scanno  )  [private]
double casa::NRO2MSReader::getIntMiddleTimeSec ( sdfiller::NRODataScanData const &  data  )  [private]
double casa::NRO2MSReader::getIntStartTimeSec ( int const   scanno  )  [private]
double casa::NRO2MSReader::getMiddleOfTimeRangeSec (  )  [private]
double casa::NRO2MSReader::getMJD ( string const &  time  )  [private]
virtual int casa::NRO2MSReader::getNROArraySize (  )  [inline, virtual]
virtual int casa::NRO2MSReader::getNRONumBeam (  )  [inline, virtual]

Reimplemented from casa::ReaderInterface.

Definition at line 91 of file NRO2MSReader.h.

References casa::sdfiller::NRODataObsHeader::NBEAM, and obs_header_.

virtual int casa::NRO2MSReader::getNRONumPol (  )  [inline, virtual]

Reimplemented from casa::ReaderInterface.

Definition at line 94 of file NRO2MSReader.h.

References casa::sdfiller::NRODataObsHeader::NPOL, and obs_header_.

virtual int casa::NRO2MSReader::getNRONumSpw (  )  [inline, virtual]

Reimplemented from casa::ReaderInterface.

Definition at line 97 of file NRO2MSReader.h.

References casa::sdfiller::NRODataObsHeader::NSPWIN, and obs_header_.

virtual size_t casa::NRO2MSReader::getNumberOfRows (  )  [virtual]

get number of rows

Implements casa::ReaderInterface.

virtual Bool casa::NRO2MSReader::getObservationRow ( sdfiller::ObservationRecord record  )  [inline, virtual]

to get OBSERVATION table

Implements casa::ReaderInterface.

Definition at line 38 of file NRO2MSReader.h.

References get_observation_row_, POST_END, and POST_START.

Bool casa::NRO2MSReader::getObservationRowImpl ( sdfiller::ObservationRecord record  )  [private]
Int casa::NRO2MSReader::getPolNo ( string const &  rx  )  [private]
virtual Bool casa::NRO2MSReader::getProcessorRow ( sdfiller::ProcessorRecord record  )  [inline, virtual]

to get PROCESSOR table

Implements casa::ReaderInterface.

Definition at line 54 of file NRO2MSReader.h.

References get_processor_row_, POST_END, and POST_START.

Bool casa::NRO2MSReader::getProcessorRowImpl ( sdfiller::ProcessorRecord record  )  [private]
double casa::NRO2MSReader::getRestFrequency ( int const   spwno  )  [private]
virtual Bool casa::NRO2MSReader::getSourceRow ( sdfiller::SourceRecord record  )  [inline, virtual]

to get SOURCE table

Implements casa::ReaderInterface.

Definition at line 62 of file NRO2MSReader.h.

References get_source_row_, POST_END, and POST_START.

Bool casa::NRO2MSReader::getSourceRowImpl ( sdfiller::SourceRecord record  )  [private]
virtual Bool casa::NRO2MSReader::getSpectralWindowRow ( sdfiller::SpectralWindowRecord record  )  [inline, virtual]

to get SOURCE table

Implements casa::ReaderInterface.

Definition at line 78 of file NRO2MSReader.h.

References get_spw_row_, POST_END, and POST_START.

Bool casa::NRO2MSReader::getSpectralWindowRowImpl ( sdfiller::SpectralWindowRecord record  )  [private]
std::vector<double> casa::NRO2MSReader::getSpectrum ( int const   irow,
sdfiller::NRODataScanData const &  data 
) [private]
void casa::NRO2MSReader::initializeSpecific (  )  [protected, virtual]

Implements casa::ReaderInterface.

virtual Bool casa::NRO2MSReader::isFloatData (  )  const [inline, virtual]

Reimplemented from casa::ReaderInterface.

Definition at line 33 of file NRO2MSReader.h.

References casacore::True.

template<class _Record >
Bool casa::NRO2MSReader::noMoreRowImpl ( _Record &   )  [inline, private]

Definition at line 188 of file NRO2MSReader.h.

References casacore::False, POST_END, and POST_START.

void casa::NRO2MSReader::readHeader ( string *  v,
size_t  strLength,
size_t  numArray 
) [inline, private]

Definition at line 145 of file NRO2MSReader.h.

References readHeader().

void casa::NRO2MSReader::readHeader ( string &  v,
size_t  strLength 
) [inline, private]

Definition at line 137 of file NRO2MSReader.h.

References fp_, and STRING2CHAR.

template<typename T >
void casa::NRO2MSReader::readHeader ( T *  v,
size_t  numArray 
) [inline, private]

Definition at line 131 of file NRO2MSReader.h.

template<typename T >
void casa::NRO2MSReader::readHeader ( T &  v  )  [inline, private]

Definition at line 121 of file NRO2MSReader.h.

References convertEndian(), fp_, and same_endian_.

Referenced by readHeader().

void casa::NRO2MSReader::readObsHeader (  )  [private]
void casa::NRO2MSReader::readScanData ( int const   irow,
sdfiller::NRODataScanData data 
) [private]

Member Data Documentation

Definition at line 151 of file NRO2MSReader.h.

FILE* casa::NRO2MSReader::fp_ [private]

Definition at line 106 of file NRO2MSReader.h.

Referenced by readHeader().

Referenced by getAntennaRow().

Bool(NRO2MSReader::* casa::NRO2MSReader::get_field_row_)(sdfiller::FieldRecord &) [private]

Referenced by getFieldRow().

Referenced by getObservationRow().

Referenced by getProcessorRow().

Bool(NRO2MSReader::* casa::NRO2MSReader::get_source_row_)(sdfiller::SourceRecord &) [private]

Referenced by getSourceRow().

Referenced by getSpectralWindowRow().

Definition at line 155 of file NRO2MSReader.h.

Definition at line 107 of file NRO2MSReader.h.

Referenced by getNROArraySize(), getNRONumBeam(), getNRONumPol(), and getNRONumSpw().

Double const casa::NRO2MSReader::posx_ [private]

Definition at line 163 of file NRO2MSReader.h.

Double const casa::NRO2MSReader::posy_ [private]

Definition at line 164 of file NRO2MSReader.h.

Double const casa::NRO2MSReader::posz_ [private]

Definition at line 165 of file NRO2MSReader.h.

Definition at line 118 of file NRO2MSReader.h.

Referenced by readHeader().

Definition at line 152 of file NRO2MSReader.h.

Definition at line 153 of file NRO2MSReader.h.

Vector<Double> casa::NRO2MSReader::time_range_sec_ [private]

Definition at line 154 of file NRO2MSReader.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1