#include <MSColumns.h>
Inheritance diagram for casa::MSColumns:


Part of API
MSColumns stands for MeasurementSet Table columns.
This class provides access to all the subtables and direct access to all the columns in the MeasurementSet. It does the declaration of all the Scalar and ArrayColumns with the correct types, so the application programmer doesn't have to worry about getting those right. There is an access function for every predefined column. Access to non-predefined columns will still have to be done with explicit declarations.
// use as follows MeasurementSet ms("myMS",Table::Update); MSColumns msc(ms); // show data from row 5 cout << msc.data()(5); // change name of antenna on row 3 in antenna table msc.antenna().name().put(3,"NewAnt-3");
Having to type long lists of Scalar and Array column declarations gets very tedious. This class attempts to relieve some of that tedium, while at the same time concentrating all the declarations in one place, making Type errors in the column declaration (only caught at run-time) less probable. Type errors in the use of the columns is caught at compile time.
Definition at line 216 of file MSColumns.h.
| casa::MSColumns::MSColumns | ( | MeasurementSet & | ms | ) |
Create a columns object that accesses the data in the specified MS.
| casa::MSColumns::~MSColumns | ( | ) |
The destructor does nothing special.
| MSAntennaColumns& casa::MSColumns::antenna | ( | ) | [inline] |
Read-write access to required subtables.
Definition at line 227 of file MSColumns.h.
References antenna_p.
| MSDataDescColumns& casa::MSColumns::dataDescription | ( | ) | [inline] |
| MSFeedColumns& casa::MSColumns::feed | ( | ) | [inline] |
| MSFieldColumns& casa::MSColumns::field | ( | ) | [inline] |
| MSFlagCmdColumns& casa::MSColumns::flagCmd | ( | ) | [inline] |
| MSHistoryColumns& casa::MSColumns::history | ( | ) | [inline] |
| MSObservationColumns& casa::MSColumns::observation | ( | ) | [inline] |
| MSPointingColumns& casa::MSColumns::pointing | ( | ) | [inline] |
| MSPolarizationColumns& casa::MSColumns::polarization | ( | ) | [inline] |
| MSProcessorColumns& casa::MSColumns::processor | ( | ) | [inline] |
| MSSpWindowColumns& casa::MSColumns::spectralWindow | ( | ) | [inline] |
| MSStateColumns& casa::MSColumns::state | ( | ) | [inline] |
| MSDopplerColumns& casa::MSColumns::doppler | ( | ) | [inline] |
Read-write access to optional subtables.
Definition at line 243 of file MSColumns.h.
References doppler_p.
| MSFreqOffsetColumns& casa::MSColumns::freqOffset | ( | ) | [inline] |
| MSSourceColumns& casa::MSColumns::source | ( | ) | [inline] |
| MSSysCalColumns& casa::MSColumns::sysCal | ( | ) | [inline] |
| MSWeatherColumns& casa::MSColumns::weather | ( | ) | [inline] |
| const ROMSAntennaColumns& casa::MSColumns::antenna | ( | ) | const [inline] |
Read-only access to required subtables.
Definition at line 252 of file MSColumns.h.
References antenna_p.
| const ROMSDataDescColumns& casa::MSColumns::dataDescription | ( | ) | const [inline] |
| const ROMSFeedColumns& casa::MSColumns::feed | ( | ) | const [inline] |
| const ROMSFieldColumns& casa::MSColumns::field | ( | ) | const [inline] |
| const ROMSFlagCmdColumns& casa::MSColumns::flagCmd | ( | ) | const [inline] |
| const ROMSHistoryColumns& casa::MSColumns::history | ( | ) | const [inline] |
| const ROMSObservationColumns& casa::MSColumns::observation | ( | ) | const [inline] |
| const ROMSPointingColumns& casa::MSColumns::pointing | ( | ) | const [inline] |
| const ROMSPolarizationColumns& casa::MSColumns::polarization | ( | ) | const [inline] |
| const ROMSProcessorColumns& casa::MSColumns::processor | ( | ) | const [inline] |
| const ROMSSourceColumns& casa::MSColumns::source | ( | ) | const [inline] |
| const ROMSSpWindowColumns& casa::MSColumns::spectralWindow | ( | ) | const [inline] |
| const ROMSStateColumns& casa::MSColumns::state | ( | ) | const [inline] |
| const ROMSDopplerColumns& casa::MSColumns::doppler | ( | ) | const [inline] |
Read-only access to optional subtables.
Definition at line 271 of file MSColumns.h.
References doppler_p.
| const ROMSFreqOffsetColumns& casa::MSColumns::freqOffset | ( | ) | const [inline] |
| const ROMSSysCalColumns& casa::MSColumns::sysCal | ( | ) | const [inline] |
| const ROMSWeatherColumns& casa::MSColumns::weather | ( | ) | const [inline] |
| void casa::MSColumns::setEpochRef | ( | MEpoch::Types | ref, | |
| Bool | tableMustBeEmpty = True | |||
| ) |
set the EPOCH reference type in all EPOCH columns in the MS.
Note that only a single EPOCH reference is allowed in the MS. This Tip: In principle this function can only be used if the table is empty, otherwise already written values may thereafter have an incorrect reference, offset, or unit. However, it is possible that part of the table gets written before these values are known. In that case the reference, offset, or units can be set by using a False tableMustBeEmpty argument.
Reimplemented from casa::MSMainColumns.
| void casa::MSColumns::setDirectionRef | ( | MDirection::Types | ref | ) |
set the DIRECTION reference type for FIELD, POINTING and SOURCE tables (except for antenna frame directions).
MSAntennaColumns casa::MSColumns::antenna_p [private] |
MSDataDescColumns casa::MSColumns::dataDesc_p [private] |
MSDopplerColumns casa::MSColumns::doppler_p [private] |
MSFeedColumns casa::MSColumns::feed_p [private] |
MSFieldColumns casa::MSColumns::field_p [private] |
MSFlagCmdColumns casa::MSColumns::flagCmd_p [private] |
MSHistoryColumns casa::MSColumns::history_p [private] |
MSPointingColumns casa::MSColumns::pointing_p [private] |
MSSourceColumns casa::MSColumns::source_p [private] |
MSStateColumns casa::MSColumns::state_p [private] |
MSSysCalColumns casa::MSColumns::sysCal_p [private] |
MSWeatherColumns casa::MSColumns::weather_p [private] |
1.5.1