29 #ifndef CALIBRATION_CALTABLE_H
30 #define CALIBRATION_CALTABLE_H
void addRow(uInt nrrow=1, Bool initialize=False)
Add one or more rows at the end of the table.
virtual casacore::Int maxAntenna()
Return the maximum antenna number in the table.
void rowsPerCalDescId(casacore::Vector< casacore::Int > &rowspercdi)
Return the number of rows per CalDescId.
casacore::Int nRowMain() const
Return number of rows in cal_main, cal_desc or cal_history.
const casacore::Table & calDescAsTable() const
casacore::Table & calHistoryAsTable()
const casacore::String type()
Main interface class to a read/write table.
ROCalDescColumns: Read-only cal_desc calibration table column access.
casacore::Int numberTimeSlots(const casacore::Double &fracError)
Return the number of unique time slots in the table.
ROCalMainColumns: Read-only cal_main calibration table column access.
casacore::Int nRowObservation() const
ROCalHistoryColumns: Read-only cal_history calibration table column access.
Order
Enumerate the sort order:
casacore::Table * itsObservationTable
casacore::Table & calDescAsTable()
virtual Int fieldNumber(const String &fieldName) const
Get the field number from the field name.
CalTableDesc: Define the format of calibration tables.
void putRowDesc(const casacore::Int &jrow, CalDescRecord &tableRec)
void addRowHistory(casacore::uInt nrrow=1, casacore::Bool initialize=false)
casacore::Int nRowHistory() const
CalDescRecord: Cal_desc table record access and creation.
const casacore::String tableName()
casacore::Record getRowHistory(const casacore::Int &jrow)
const String & tableName() const
Get the table name.
const String & subType() const
CalTable: Calibration table access and creation.
void sort2(const casacore::Block< casacore::String > &columnNames, casacore::Sort::Order order=casacore::Sort::Ascending, casacore::Sort::Option option=casacore::Sort::HeapSort)
casacore::Sort (cal_main) IN PLACE
void putRowHistory(const casacore::Int &jrow, CalHistoryRecord &tableRec)
CalHistoryRecord: Cal_ table record access and creation.
CalTable()
Default null constructor, and destructor.
casacore::Record getRowObservation(const casacore::Int &jrow)
CalMainColumns: Read-write cal_main calibration table column access.
static TableInfo tableInfo(const String &tableName)
Get the table info of the table with the given name.
casacore::Table * itsDescTable
Pointers to the cal_desc and cal_history sub-tables.
void addRowDesc(casacore::uInt nrrow=1, casacore::Bool initialize=false)
Option
Enumerate the sort options:
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
CalMainRecord: Calibration table record access and creation.
void addRowMain(casacore::uInt nrrow=1, casacore::Bool initialize=false)
Add rows to cal_main, cal_desc or cal_history.
casacore::Record getRowMain(const casacore::Int &jrow)
Get a row from cal_main, cal_desc or cal_history.
casacore::Record getRowDesc(const casacore::Int &jrow)
casacore::Table & calMainAsTable()
Return cal_main and sub-tables as casacore::Table references.
casacore::Table * itsHistoryTable
CalDescColumns: Read-write cal_desc calibration table column access.
CalTable & operator=(const CalTable &other)
Assignment operator.
void putRowMain(const casacore::Int &jrow, CalMainRecord &tableRec)
Put a row to cal_main, cal_desc or cal_history.
const TableRecord & keywordSet() const
Get readonly access to the table keyword set.
void createCalTable(const casacore::String &tableName, CalTableDesc &ctableDesc, casacore::Table::TableOption access=casacore::Table::New)
Create a new table.
bool hasObsTable() const
Check if has optional OBSERVATION Table.
CalTable sort(const casacore::Block< casacore::String > &columnNames, casacore::Sort::Order order=casacore::Sort::Ascending, casacore::Sort::Option option=casacore::Sort::HeapSort)
casacore::Sort (cal_main)
const casacore::Table & calHistoryAsTable() const
const casacore::Table & calMainAsTable() const
String: the storage and methods of handling collections of characters.
CalTable select(const casacore::String &calSelect)
Apply selection to the calibration table.
CalHistoryColumns: Read-write cal_history calibration table column access.
casacore::Table * itsMainTable
Pointer to underlying cal_main casacore::Table object.
void select2(const casacore::String &calSelect)
Apply selection to the calibration table IN PLACE.
casacore::Int nRowDesc() const
void openCalTable(const casacore::String &tableName, casacore::Table::TableOption access=casacore::Table::Old)
Open an existing table.
TableOption
Define the possible options how a table can be opened.
casacore::Table & calObservationAsTable()