casa
5.7.0-16
|
CalTable: Calibration table access and creation. More...
#include <CalTable2.h>
Public Member Functions | |
CalTable2 () | |
Default null constructor, and destructor. More... | |
virtual | ~CalTable2 () |
CalTable2 (const casacore::String &tableName, CalTableDesc2 &ctableDesc, casacore::Table::TableOption access=casacore::Table::New) | |
Construct from a specified table name, calibration table descriptor and table access option. More... | |
CalTable2 (const casacore::String &tableName, casacore::Table::TableOption access=casacore::Table::Old) | |
Construct from a specified table name, and access option. More... | |
CalTable2 (const casacore::Table &table) | |
Construct from an existing table object. More... | |
CalTable2 (const CalTable2 &other) | |
Copy constructor. More... | |
casacore::Int | parType () |
CalTable2 & | operator= (const CalTable2 &other) |
Assignment operator. More... | |
CalTable2 | 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) More... | |
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 More... | |
CalTable2 | select (const casacore::String &calSelect) |
Apply selection to the calibration table. More... | |
void | select2 (const casacore::String &calSelect) |
Apply selection to the calibration table IN PLACE. More... | |
casacore::Int | nRowMain () const |
Return number of rows in cal_main, cal_desc or cal_history. More... | |
casacore::Int | nRowDesc () const |
casacore::Int | nRowHistory () const |
void | addRowMain (casacore::uInt nrrow=1, casacore::Bool initialize=false) |
Add rows to cal_main, cal_desc or cal_history. More... | |
void | addRowDesc (casacore::uInt nrrow=1, casacore::Bool initialize=false) |
void | addRowHistory (casacore::uInt nrrow=1, casacore::Bool initialize=false) |
casacore::Record | getRowMain (const casacore::Int &jrow) |
Get a row from cal_main, cal_desc or cal_history. More... | |
casacore::Record | getRowDesc (const casacore::Int &jrow) |
casacore::Record | getRowHistory (const casacore::Int &jrow) |
void | putRowMain (const casacore::Int &jrow, CalMainRecord &tableRec) |
Put a row to cal_main, cal_desc or cal_history. More... | |
void | putRowDesc (const casacore::Int &jrow, CalDescRecord &tableRec) |
void | putRowHistory (const casacore::Int &jrow, CalHistoryRecord &tableRec) |
virtual casacore::Int | maxAntenna () |
Return the maximum antenna number in the table. More... | |
casacore::Int | numberTimeSlots (const casacore::Double &fracError) |
Return the number of unique time slots in the table. More... | |
void | createCalTable (const casacore::String &tableName, CalTableDesc2 &ctableDesc, casacore::Table::TableOption access=casacore::Table::New) |
Create a new table. More... | |
void | openCalTable (const casacore::String &tableName, casacore::Table::TableOption access=casacore::Table::Old) |
Open an existing table. More... | |
casacore::Table & | calMainAsTable () |
Return cal_main and sub-tables as casacore::Table references. More... | |
casacore::Table & | calDescAsTable () |
casacore::Table & | calHistoryAsTable () |
const casacore::Table & | calMainAsTable () const |
const casacore::Table & | calDescAsTable () const |
const casacore::Table & | calHistoryAsTable () const |
Private Attributes | |
casacore::Table * | itsMainTable |
Pointer to underlying cal_main casacore::Table object. More... | |
casacore::Table * | itsDescTable |
Pointers to the cal_desc and cal_history sub-tables. More... | |
casacore::Table * | itsHistoryTable |
casacore::Int | parType_ |
Friends | |
class | ROCalHistoryColumns |
Friend class access from the ROCalMainColumns, ROCalDescColumns and ROCalHistoryColumns class hierarchies friend class ROCalMainColumns2; friend class CalMainColumns2; friend class ROCalDescColumns2; friend class CalDescColumns2;. More... | |
class | CalHistoryColumns |
CalTable: Calibration table access and creation.
Public interface
From "calibration" and "table".
The CalTable classes provide basic access to calibration tables. This includes the creation of calibration tables, sorting and selection capabilities, and basic data access. Specializations for baseline-based, time-variable and solvable VisJones types, and sub-types, are provided through inheritance.
This class is used by other calibration table accessors and iterators.
Definition at line 81 of file CalTable2.h.
casa::CalTable2::CalTable2 | ( | ) |
Default null constructor, and destructor.
|
virtual |
casa::CalTable2::CalTable2 | ( | const casacore::String & | tableName, |
CalTableDesc2 & | ctableDesc, | ||
casacore::Table::TableOption | access = casacore::Table::New |
||
) |
Construct from a specified table name, calibration table descriptor and table access option.
Used for creating new tables.
casa::CalTable2::CalTable2 | ( | const casacore::String & | tableName, |
casacore::Table::TableOption | access = casacore::Table::Old |
||
) |
Construct from a specified table name, and access option.
Used for accessing existing tables.
casa::CalTable2::CalTable2 | ( | const casacore::Table & | table | ) |
Construct from an existing table object.
casa::CalTable2::CalTable2 | ( | const CalTable2 & | other | ) |
Copy constructor.
|
inline |
Definition at line 132 of file CalTable2.h.
References casacore::Table::addRow(), and itsDescTable.
|
inline |
Definition at line 134 of file CalTable2.h.
References casacore::Table::addRow(), and itsHistoryTable.
|
inline |
Add rows to cal_main, cal_desc or cal_history.
Definition at line 130 of file CalTable2.h.
References casacore::Table::addRow(), and itsMainTable.
|
inline |
Definition at line 163 of file CalTable2.h.
References itsDescTable.
Referenced by casa::ROCalDescColumns2::calDescAsTable(), and casa::CalDescColumns2::calDescAsTable().
|
inline |
Definition at line 166 of file CalTable2.h.
References itsDescTable.
|
inline |
Definition at line 164 of file CalTable2.h.
References itsHistoryTable.
|
inline |
Definition at line 167 of file CalTable2.h.
|
inline |
Return cal_main and sub-tables as casacore::Table references.
Definition at line 162 of file CalTable2.h.
References itsMainTable.
Referenced by casa::CalMainColumns2< casacore::Complex >::asTable(), and casa::ROCalMainColumns2< T >::asTable().
|
inline |
Definition at line 165 of file CalTable2.h.
References itsMainTable.
void casa::CalTable2::createCalTable | ( | const casacore::String & | tableName, |
CalTableDesc2 & | ctableDesc, | ||
casacore::Table::TableOption | access = casacore::Table::New |
||
) |
Create a new table.
casacore::Record casa::CalTable2::getRowDesc | ( | const casacore::Int & | jrow | ) |
casacore::Record casa::CalTable2::getRowHistory | ( | const casacore::Int & | jrow | ) |
casacore::Record casa::CalTable2::getRowMain | ( | const casacore::Int & | jrow | ) |
Get a row from cal_main, cal_desc or cal_history.
|
virtual |
Return the maximum antenna number in the table.
casacore::Int casa::CalTable2::nRowDesc | ( | ) | const |
casacore::Int casa::CalTable2::nRowHistory | ( | ) | const |
casacore::Int casa::CalTable2::nRowMain | ( | ) | const |
Return number of rows in cal_main, cal_desc or cal_history.
casacore::Int casa::CalTable2::numberTimeSlots | ( | const casacore::Double & | fracError | ) |
Return the number of unique time slots in the table.
void casa::CalTable2::openCalTable | ( | const casacore::String & | tableName, |
casacore::Table::TableOption | access = casacore::Table::Old |
||
) |
Open an existing table.
|
inline |
Definition at line 104 of file CalTable2.h.
References parType_.
void casa::CalTable2::putRowDesc | ( | const casacore::Int & | jrow, |
CalDescRecord & | tableRec | ||
) |
void casa::CalTable2::putRowHistory | ( | const casacore::Int & | jrow, |
CalHistoryRecord & | tableRec | ||
) |
void casa::CalTable2::putRowMain | ( | const casacore::Int & | jrow, |
CalMainRecord & | tableRec | ||
) |
Put a row to cal_main, cal_desc or cal_history.
CalTable2 casa::CalTable2::select | ( | const casacore::String & | calSelect | ) |
Apply selection to the calibration table.
void casa::CalTable2::select2 | ( | const casacore::String & | calSelect | ) |
Apply selection to the calibration table IN PLACE.
CalTable2 casa::CalTable2::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)
void casa::CalTable2::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
|
friend |
Definition at line 177 of file CalTable2.h.
|
friend |
Friend class access from the ROCalMainColumns, ROCalDescColumns and ROCalHistoryColumns class hierarchies friend class ROCalMainColumns2; friend class CalMainColumns2; friend class ROCalDescColumns2; friend class CalDescColumns2;.
Definition at line 167 of file CalTable2.h.
|
private |
Pointers to the cal_desc and cal_history sub-tables.
Definition at line 184 of file CalTable2.h.
Referenced by addRowDesc(), and calDescAsTable().
|
private |
Definition at line 185 of file CalTable2.h.
Referenced by addRowHistory(), and calHistoryAsTable().
|
private |
Pointer to underlying cal_main casacore::Table object.
Definition at line 181 of file CalTable2.h.
Referenced by addRowMain(), and calMainAsTable().
|
private |
Definition at line 186 of file CalTable2.h.
Referenced by parType().