#include <Scantable2MSReader.h>
Public Member Functions | |
Scantable2MSReader (std::string const &scantable_name) | |
virtual | ~Scantable2MSReader () |
virtual size_t | getNumberOfRows () |
get number of rows for MAIN table | |
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 | |
Protected Member Functions | |
void | initializeSpecific () |
void | finalizeSpecific () |
Private Member Functions | |
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 &) |
template<class _Iterator , class _Record , class _Func > | |
Bool | getRowImplTemplate (std::unique_ptr< _Iterator > &iter, _Record &record, _Func &func, typename _Iterator::Product *product=nullptr) |
Private Attributes | |
std::unique_ptr< Table > | main_table_ |
Table | tcal_table_ |
Table | weather_table_ |
ROScalarColumn< uInt > | scan_column_ |
ROScalarColumn< uInt > | cycle_column_ |
ROScalarColumn< uInt > | ifno_column_ |
ROScalarColumn< uInt > | polno_column_ |
ROScalarColumn< uInt > | beam_column_ |
ROScalarColumn< uInt > | flagrow_column_ |
ROScalarColumn< Double > | time_column_ |
ROScalarColumn< Double > | interval_column_ |
ROScalarColumn< Int > | srctype_column_ |
ArrayColumn< Float > | data_column_ |
ArrayColumn< uChar > | flag_column_ |
ArrayColumn< Double > | direction_column_ |
ArrayColumn< Double > | scanrate_column_ |
ROScalarColumn< String > | fieldname_column_ |
ArrayColumn< Float > | tsys_column_ |
ROScalarColumn< uInt > | tcal_id_column_ |
ROScalarColumn< uInt > | weather_id_column_ |
ArrayColumn< Float > | tcal_column_ |
ROScalarColumn< Float > | temperature_column_ |
ROScalarColumn< Float > | pressure_column_ |
ROScalarColumn< Float > | humidity_column_ |
ROScalarColumn< Float > | wind_speed_column_ |
ROScalarColumn< Float > | wind_direction_column_ |
Vector< uInt > | sorted_rows_ |
ScantableFieldIterator::Product | field_map_ |
ScantableFrequenciesIterator::Product | num_chan_map_ |
std::map< uInt, uInt > | tcal_id_map_ |
std::map< uInt, uInt > | weather_id_map_ |
String | pol_type_ |
Bool(Scantable2MSReader::* | get_antenna_row_ )(sdfiller::AntennaRecord &) |
Bool(Scantable2MSReader::* | get_field_row_ )(sdfiller::FieldRecord &) |
Bool(Scantable2MSReader::* | get_observation_row_ )(sdfiller::ObservationRecord &) |
Bool(Scantable2MSReader::* | get_processor_row_ )(sdfiller::ProcessorRecord &) |
Bool(Scantable2MSReader::* | get_source_row_ )(sdfiller::SourceRecord &) |
Bool(Scantable2MSReader::* | get_spw_row_ )(sdfiller::SpectralWindowRecord &) |
std::unique_ptr < ScantableFieldIterator > | field_iter_ |
std::unique_ptr < ScantableFrequenciesIterator > | freq_iter_ |
std::unique_ptr < ScantableSourceIterator > | source_iter_ |
Definition at line 25 of file Scantable2MSReader.h.
casa::Scantable2MSReader::Scantable2MSReader | ( | std::string const & | scantable_name | ) |
virtual casa::Scantable2MSReader::~Scantable2MSReader | ( | ) | [virtual] |
void casa::Scantable2MSReader::finalizeSpecific | ( | ) | [protected, virtual] |
Implements casa::ReaderInterface.
virtual Bool casa::Scantable2MSReader::getAntennaRow | ( | sdfiller::AntennaRecord & | record | ) | [inline, virtual] |
to get ANTENNA table
Implements casa::ReaderInterface.
Definition at line 66 of file Scantable2MSReader.h.
References get_antenna_row_, POST_END, and POST_START.
Bool casa::Scantable2MSReader::getAntennaRowImpl | ( | sdfiller::AntennaRecord & | record | ) | [private] |
virtual Bool casa::Scantable2MSReader::getData | ( | size_t | irow, | |
sdfiller::DataRecord & | record | |||
) | [virtual] |
for DataAccumulator
Implements casa::ReaderInterface.
virtual Bool casa::Scantable2MSReader::getFieldRow | ( | sdfiller::FieldRecord & | record | ) | [inline, virtual] |
to get FIELD table
Implements casa::ReaderInterface.
Definition at line 96 of file Scantable2MSReader.h.
References get_field_row_, POST_END, and POST_START.
Bool casa::Scantable2MSReader::getFieldRowImpl | ( | sdfiller::FieldRecord & | record | ) | [private] |
virtual size_t casa::Scantable2MSReader::getNumberOfRows | ( | ) | [inline, virtual] |
get number of rows for MAIN table
Implements casa::ReaderInterface.
Definition at line 31 of file Scantable2MSReader.h.
References main_table_.
virtual Bool casa::Scantable2MSReader::getObservationRow | ( | sdfiller::ObservationRecord & | record | ) | [inline, virtual] |
to get OBSERVATION table
Implements casa::ReaderInterface.
Definition at line 56 of file Scantable2MSReader.h.
References get_observation_row_, POST_END, and POST_START.
Bool casa::Scantable2MSReader::getObservationRowImpl | ( | sdfiller::ObservationRecord & | record | ) | [private] |
virtual Bool casa::Scantable2MSReader::getProcessorRow | ( | sdfiller::ProcessorRecord & | record | ) | [inline, virtual] |
to get PROCESSOR table
Implements casa::ReaderInterface.
Definition at line 76 of file Scantable2MSReader.h.
References get_processor_row_, POST_END, and POST_START.
Bool casa::Scantable2MSReader::getProcessorRowImpl | ( | sdfiller::ProcessorRecord & | record | ) | [private] |
Bool casa::Scantable2MSReader::getRowImplTemplate | ( | std::unique_ptr< _Iterator > & | iter, | |
_Record & | record, | |||
_Func & | func, | |||
typename _Iterator::Product * | product = nullptr | |||
) | [inline, private] |
seems to be passed through all the table, deallocate iterator
and then redirect function pointer to noMoreRowImpl
Definition at line 173 of file Scantable2MSReader.h.
References main_table_, POST_END, POST_START, and casacore::product().
virtual Bool casa::Scantable2MSReader::getSourceRow | ( | sdfiller::SourceRecord & | record | ) | [inline, virtual] |
to get SOURCE table
Implements casa::ReaderInterface.
Definition at line 86 of file Scantable2MSReader.h.
References get_source_row_, POST_END, and POST_START.
Bool casa::Scantable2MSReader::getSourceRowImpl | ( | sdfiller::SourceRecord & | record | ) | [private] |
virtual Bool casa::Scantable2MSReader::getSpectralWindowRow | ( | sdfiller::SpectralWindowRecord & | record | ) | [inline, virtual] |
to get SOURCE table
Implements casa::ReaderInterface.
Definition at line 106 of file Scantable2MSReader.h.
References get_spw_row_, POST_END, and POST_START.
Bool casa::Scantable2MSReader::getSpectralWindowRowImpl | ( | sdfiller::SpectralWindowRecord & | record | ) | [private] |
void casa::Scantable2MSReader::initializeSpecific | ( | ) | [protected, virtual] |
Implements casa::ReaderInterface.
virtual Bool casa::Scantable2MSReader::isFloatData | ( | ) | const [inline, virtual] |
std::cout << "pol_type=" << pol_type << " max_pol=" << max_pol << std::endl;
std::cout << "is_float = " << is_float << std::endl;
Reimplemented from casa::ReaderInterface.
Definition at line 38 of file Scantable2MSReader.h.
References casacore::False, main_table_, casacore::max(), String, and casacore::True.
Bool casa::Scantable2MSReader::noMoreRowImpl | ( | _Record & | ) | [inline, private] |
Definition at line 167 of file Scantable2MSReader.h.
References casacore::False, POST_END, and POST_START.
ROScalarColumn<uInt> casa::Scantable2MSReader::beam_column_ [private] |
Definition at line 128 of file Scantable2MSReader.h.
ROScalarColumn<uInt> casa::Scantable2MSReader::cycle_column_ [private] |
Definition at line 127 of file Scantable2MSReader.h.
ArrayColumn<Float> casa::Scantable2MSReader::data_column_ [private] |
Definition at line 131 of file Scantable2MSReader.h.
ArrayColumn<Double> casa::Scantable2MSReader::direction_column_ [private] |
Definition at line 133 of file Scantable2MSReader.h.
std::unique_ptr<ScantableFieldIterator> casa::Scantable2MSReader::field_iter_ [private] |
Definition at line 155 of file Scantable2MSReader.h.
Definition at line 141 of file Scantable2MSReader.h.
ROScalarColumn<String> casa::Scantable2MSReader::fieldname_column_ [private] |
Definition at line 134 of file Scantable2MSReader.h.
ArrayColumn<uChar> casa::Scantable2MSReader::flag_column_ [private] |
Definition at line 132 of file Scantable2MSReader.h.
ROScalarColumn< uInt> casa::Scantable2MSReader::flagrow_column_ [private] |
Definition at line 129 of file Scantable2MSReader.h.
std::unique_ptr<ScantableFrequenciesIterator> casa::Scantable2MSReader::freq_iter_ [private] |
Definition at line 156 of file Scantable2MSReader.h.
Bool(Scantable2MSReader::* casa::Scantable2MSReader::get_antenna_row_)(sdfiller::AntennaRecord &) [private] |
Referenced by getAntennaRow().
Bool(Scantable2MSReader::* casa::Scantable2MSReader::get_field_row_)(sdfiller::FieldRecord &) [private] |
Referenced by getFieldRow().
Bool(Scantable2MSReader::* casa::Scantable2MSReader::get_observation_row_)(sdfiller::ObservationRecord &) [private] |
Referenced by getObservationRow().
Bool(Scantable2MSReader::* casa::Scantable2MSReader::get_processor_row_)(sdfiller::ProcessorRecord &) [private] |
Referenced by getProcessorRow().
Bool(Scantable2MSReader::* casa::Scantable2MSReader::get_source_row_)(sdfiller::SourceRecord &) [private] |
Referenced by getSourceRow().
Bool(Scantable2MSReader::* casa::Scantable2MSReader::get_spw_row_)(sdfiller::SpectralWindowRecord &) [private] |
Referenced by getSpectralWindowRow().
ROScalarColumn<Float> casa::Scantable2MSReader::humidity_column_ [private] |
Definition at line 138 of file Scantable2MSReader.h.
ROScalarColumn< uInt> casa::Scantable2MSReader::ifno_column_ [private] |
Definition at line 128 of file Scantable2MSReader.h.
ROScalarColumn< Double> casa::Scantable2MSReader::interval_column_ [private] |
Definition at line 130 of file Scantable2MSReader.h.
std::unique_ptr<Table> casa::Scantable2MSReader::main_table_ [private] |
Definition at line 123 of file Scantable2MSReader.h.
Referenced by getNumberOfRows(), getRowImplTemplate(), and isFloatData().
Definition at line 142 of file Scantable2MSReader.h.
String casa::Scantable2MSReader::pol_type_ [private] |
Definition at line 145 of file Scantable2MSReader.h.
ROScalarColumn<uInt> casa::Scantable2MSReader::polno_column_ [private] |
Definition at line 128 of file Scantable2MSReader.h.
ROScalarColumn< Float> casa::Scantable2MSReader::pressure_column_ [private] |
Definition at line 138 of file Scantable2MSReader.h.
ROScalarColumn<uInt> casa::Scantable2MSReader::scan_column_ [private] |
Definition at line 127 of file Scantable2MSReader.h.
ArrayColumn<Double> casa::Scantable2MSReader::scanrate_column_ [private] |
Definition at line 134 of file Scantable2MSReader.h.
Vector<uInt> casa::Scantable2MSReader::sorted_rows_ [private] |
Definition at line 140 of file Scantable2MSReader.h.
std::unique_ptr<ScantableSourceIterator> casa::Scantable2MSReader::source_iter_ [private] |
Definition at line 157 of file Scantable2MSReader.h.
ROScalarColumn<Int> casa::Scantable2MSReader::srctype_column_ [private] |
Definition at line 130 of file Scantable2MSReader.h.
ArrayColumn<Float> casa::Scantable2MSReader::tcal_column_ [private] |
Definition at line 137 of file Scantable2MSReader.h.
ROScalarColumn<uInt> casa::Scantable2MSReader::tcal_id_column_ [private] |
Definition at line 135 of file Scantable2MSReader.h.
std::map<uInt, uInt> casa::Scantable2MSReader::tcal_id_map_ [private] |
Definition at line 143 of file Scantable2MSReader.h.
Table casa::Scantable2MSReader::tcal_table_ [private] |
Definition at line 124 of file Scantable2MSReader.h.
ROScalarColumn<Float> casa::Scantable2MSReader::temperature_column_ [private] |
Definition at line 137 of file Scantable2MSReader.h.
ROScalarColumn<Double> casa::Scantable2MSReader::time_column_ [private] |
Definition at line 129 of file Scantable2MSReader.h.
ArrayColumn<Float> casa::Scantable2MSReader::tsys_column_ [private] |
Definition at line 135 of file Scantable2MSReader.h.
ROScalarColumn< uInt> casa::Scantable2MSReader::weather_id_column_ [private] |
Definition at line 136 of file Scantable2MSReader.h.
std::map<uInt, uInt> casa::Scantable2MSReader::weather_id_map_ [private] |
Definition at line 144 of file Scantable2MSReader.h.
Table casa::Scantable2MSReader::weather_table_ [private] |
Definition at line 125 of file Scantable2MSReader.h.
ROScalarColumn<Float> casa::Scantable2MSReader::wind_direction_column_ [private] |
Definition at line 139 of file Scantable2MSReader.h.
ROScalarColumn< Float> casa::Scantable2MSReader::wind_speed_column_ [private] |
Definition at line 139 of file Scantable2MSReader.h.