casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
casa::NewCalTable Class Reference

#include <NewCalTable.h>

Inheritance diagram for casa::NewCalTable:
casacore::Table

Public Member Functions

 NewCalTable ()
 Default null constructor, and destructor. More...
 
virtual ~NewCalTable ()
 
 NewCalTable (const casacore::String &tableName, CTDesc &ctableDesc, casacore::Table::TableOption access=casacore::Table::New, casacore::Table::TableType ttype=casacore::Table::Plain)
 Construct from a specified table name, calibration table descriptor and table access option. More...
 
 NewCalTable (casacore::SetupNewTable &newTab, casacore::uInt nrow=0, casacore::Bool initialize=false)
 Construct from setupNewTable. More...
 
 NewCalTable (casacore::String tableName, VisCalEnum::VCParType parType, casacore::String typeName, casacore::String msName, casacore::Bool doSingleChan)
 Create an empty NewCalTable conveniently. More...
 
 NewCalTable (const casacore::String &tableName, casacore::Table::TableOption access=casacore::Table::Old, casacore::Table::TableType ttype=casacore::Table::Memory)
 Construct from a specified table name, and access option. More...
 
 NewCalTable (const casacore::String &tableName, const casacore::TableLock &lockOptions, casacore::Table::TableOption access=casacore::Table::Old, casacore::Table::TableType ttype=casacore::Table::Memory)
 control locking option More...
 
 NewCalTable (const casacore::Table &table)
 Construct from an existing table object. More...
 
 NewCalTable (const NewCalTable &other)
 Copy constructor. More...
 
 NewCalTable (casacore::String tableName, casacore::String CorF, casacore::Int nObs=1, casacore::Int nScanPerObs=1, casacore::Int nTimePerScan=1, casacore::Int nAnt=1, casacore::Int nSpw=1, casacore::Vector< casacore::Int > nChan=casacore::Vector< casacore::Int >(1, 1), casacore::Int nFld=1, casacore::Double rTime=0.0, casacore::Double tint=0.0, casacore::Bool disk=false, casacore::Bool verbose=false)
 Create a vanilla NewCalTable from shapes (for testing purposes) Default rTime is 2012/01/06/12:00:00. More...
 
 NewCalTable (casacore::String tableName, casacore::String CorF, casacore::String caltype, const vi::SimpleSimVi2Parameters &ssp, casacore::Bool disk=false, casacore::Bool verbose=false)
 Create an empty NewCalTable from a SimpleSimVi2Parameters object NB: only for testing, for now. More...
 
NewCalTableoperator= (const NewCalTable &other)
 Assignment operator. More...
 
void setTableInfo ()
 Set the casacore::TableInfo record. More...
 
void createSubTables ()
 initialize reference to subtables More...
 
void attachSubTables ()
 
void clearSubtables ()
 
void copyMemCalSubtables (const NewCalTable &other)
 
void copyMemCalSubtable (const casacore::Table &otherSubtable, casacore::Table &subTable)
 
casacore::Bool isComplex ()
 casacore::Complex parameters? (else casacore::Float) More...
 
casacore::String polBasis ()
 Report the polarization basis (from header record) More...
 
casacore::String CASAvers ()
 Report the CASA version at which the NCT was created (from header) More...
 
casacore::Record getRowMain (const casacore::Int &jrow)
 Get a row from cal_main. More...
 
void putRowMain (const casacore::Int &jrow, CTMainRecord &tableRec)
 Put a row to cal_main. More...
 
void setMetaInfo (const casacore::String &msName)
 Get rows of the data from the main table void fillRowsMain ();. More...
 
void writeToDisk (const casacore::String &tableName)
 save to disk More...
 
CTObservationobservation ()
 
CTAntennaantenna ()
 
CTFieldfield ()
 
CTSpectralWindowspectralWindow ()
 
CTHistoryhistory ()
 
const CTObservationobservation () const
 
const CTAntennaantenna () const
 
const CTFieldfield () const
 
const CTSpectralWindowspectralWindow () const
 
const CTHistoryhistory () const
 
void fillAntBasedMainRows (casacore::uInt nrows, casacore::Double time, casacore::Double interval, casacore::Int fieldId, casacore::uInt spwId, casacore::Int scanNo, const casacore::Vector< casacore::Int > &ant1list, casacore::Int refant, const casacore::Cube< casacore::Complex > &cparam, const casacore::Cube< casacore::Bool > &flag, const casacore::Cube< casacore::Float > &paramErr, const casacore::Cube< casacore::Float > &snr)
 Fill in antenna-based solutions (obsId-less version calls obsId-capable version w/ obsId=0) More...
 
void fillAntBasedMainRows (casacore::uInt nrows, casacore::Double time, casacore::Double interval, casacore::Int fieldId, casacore::uInt spwId, casacore::Int obsId, casacore::Int scanNo, const casacore::Vector< casacore::Int > &ant1list, casacore::Int refant, const casacore::Cube< casacore::Complex > &cparam, const casacore::Cube< casacore::Bool > &flag, const casacore::Cube< casacore::Float > &paramErr, const casacore::Cube< casacore::Float > &snr)
 
void setSpwFreqs (casacore::Int spw, const casacore::Vector< casacore::Double > &freq, const casacore::Vector< casacore::Double > &chanwidth=casacore::Vector< casacore::Double >())
 Reset spw freq info. More...
 
void flagAbsentSpws ()
 Set FLAG_ROW in SPECTRAL_WINDOW subtable for spws absent in MAIN. More...
 
void mergeSpwMetaInfo (const NewCalTable &other)
 Merge SPW subtable rows from another NewCalTable. More...
 
void addHistoryMessage (casacore::String app="", casacore::String message="none")
 Add a line to the HISTORY table. More...
 
- Public Member Functions inherited from casacore::Table
 Table ()
 Create a null Table object (i.e. More...
 
 Table (const String &tableName, TableOption=Table::Old, const TSMOption &=TSMOption())
 Create a table object for an existing table. More...
 
 Table (const String &tableName, const TableLock &lockOptions, TableOption=Table::Old, const TSMOption &=TSMOption())
 
 Table (const String &tableName, const String &tableDescName, TableOption=Table::Old, const TSMOption &=TSMOption())
 
 Table (const String &tableName, const String &tableDescName, const TableLock &lockOptions, TableOption=Table::Old, const TSMOption &=TSMOption())
 
 Table (TableType, EndianFormat=Table::AipsrcEndian, const TSMOption &=TSMOption())
 Make a new empty table (plain (scratch) or memory type). More...
 
 Table (SetupNewTable &, uInt nrrow=0, Bool initialize=False, EndianFormat=Table::AipsrcEndian, const TSMOption &=TSMOption())
 Make a table object for a new table, which can thereafter be used for reading and writing. More...
 
 Table (SetupNewTable &, TableType, uInt nrrow=0, Bool initialize=False, EndianFormat=Table::AipsrcEndian, const TSMOption &=TSMOption())
 
 Table (SetupNewTable &, TableType, const TableLock &lockOptions, uInt nrrow=0, Bool initialize=False, EndianFormat=Table::AipsrcEndian, const TSMOption &=TSMOption())
 
 Table (SetupNewTable &, TableLock::LockOption, uInt nrrow=0, Bool initialize=False, EndianFormat=Table::AipsrcEndian, const TSMOption &=TSMOption())
 
 Table (SetupNewTable &, const TableLock &lockOptions, uInt nrrow=0, Bool initialize=False, EndianFormat=Table::AipsrcEndian, const TSMOption &=TSMOption())
 
 Table (const Block< Table > &tables, const Block< String > &subTables=Block< String >(), const String &subDirName=String())
 Create a table object as the virtual concatenation of one or more of existing tables. More...
 
 Table (const Block< String > &tableNames, const Block< String > &subTables=Block< String >(), TableOption=Table::Old, const TSMOption &=TSMOption(), const String &subDirName=String())
 
 Table (const Block< String > &tableNames, const Block< String > &subTables, const TableLock &lockOptions, TableOption=Table::Old, const TSMOption &=TSMOption())
 
 Table (const Table &)
 Copy constructor (reference semantics). More...
 
virtual ~Table ()
 The destructor flushes (i.e. More...
 
Tableoperator= (const Table &)
 Assignment (reference semantics). More...
 
Block< StringgetPartNames (Bool recursive=False) const
 Get the names of the tables this table consists of. More...
 
Bool isSameRoot (const Table &other) const
 Is the root table of this table the same as that of the other one? More...
 
void closeSubTables () const
 Close all open subtables. More...
 
void reopenRW ()
 Try to reopen the table for read/write access. More...
 
Table::EndianFormat endianFormat () const
 Get the endian format in which the table is stored. More...
 
const StorageOptionstorageOption () const
 Get the storage option used for the table. More...
 
Bool isMultiUsed (Bool checkSubTables=False) const
 Is the table used (i.e. More...
 
const TableLocklockOptions () const
 Get the locking options. More...
 
Bool hasLock (FileLocker::LockType=FileLocker::Write) const
 Has this process the read or write lock, thus can the table be read or written safely? More...
 
Bool hasLock (Bool write) const
 
Bool lock (FileLocker::LockType=FileLocker::Write, uInt nattempts=0)
 Try to lock the table for read or write access (default is write). More...
 
Bool lock (Bool write, uInt nattempts=0)
 
void unlock ()
 Unlock the table. More...
 
Bool hasDataChanged ()
 Determine if column or keyword table data have changed (or is being changed) since the last time this function was called. More...
 
void flush (Bool fsync=False, Bool recursive=False)
 Flush the table, i.e. More...
 
void resync ()
 Resynchronize the Table object with the table file. More...
 
Bool isNull () const
 Test if the object is null, i.e. More...
 
void throwIfNull () const
 Throw an exception if the object is null, i.e. More...
 
void showStructure (std::ostream &, Bool showDataMans=True, Bool showColumns=True, Bool showSubTables=False, Bool sortColumns=False, Bool cOrder=False) const
 Show the structure of the table. More...
 
void showKeywords (std::ostream &, Bool showSubTables=False, Bool showTabKey=True, Bool showColKey=False, Int maxVal=25) const
 Show the table and/or column keywords, possibly also of all subtables. More...
 
void showKeywordSets (std::ostream &, Bool showTabKey, Bool showColKey, Int maxVal) const
 Show the table and/or column keywords of this table. More...
 
Bool isRootTable () const
 Test if this table is the root table (ie. More...
 
Bool isWritable () const
 Test if this table is opened as writable. More...
 
Bool isColumnWritable (const String &columnName) const
 Test if the given column is writable. More...
 
Bool isColumnWritable (uInt columnIndex) const
 
Bool isColumnStored (const String &columnName) const
 Test if the given column is stored (otherwise it is virtual). More...
 
Bool isColumnStored (uInt columnIndex) const
 
const TableRecordkeywordSet () const
 Get readonly access to the table keyword set. More...
 
TableRecordrwKeywordSet ()
 Get read/write access to the table keyword set. More...
 
const TableInfotableInfo () const
 Get access to the TableInfo object. More...
 
TableInfotableInfo ()
 
void flushTableInfo () const
 Write the TableInfo object. More...
 
const TableDesctableDesc () const
 Get the table description. More...
 
TableDesc actualTableDesc () const
 
Record dataManagerInfo () const
 Return all data managers used and the columns served by them. More...
 
const StringtableName () const
 Get the table name. More...
 
void rename (const String &newName, TableOption)
 Rename the table and all its subtables. More...
 
void copy (const String &newName, TableOption, Bool noRows=False) const
 Copy the table and all its subtables. More...
 
void deepCopy (const String &newName, TableOption, Bool valueCopy=False, EndianFormat=AipsrcEndian, Bool noRows=False) const
 
void deepCopy (const String &newName, const Record &dataManagerInfo, TableOption, Bool valueCopy=False, EndianFormat=AipsrcEndian, Bool noRows=False) const
 
void deepCopy (const String &newName, const Record &dataManagerInfo, const StorageOption &, TableOption, Bool valueCopy=False, EndianFormat=AipsrcEndian, Bool noRows=False) const
 
Table copyToMemoryTable (const String &name, Bool noRows=False) const
 Make a copy of a table to a MemoryTable object. More...
 
TableType tableType () const
 Get the table type. More...
 
int tableOption () const
 Get the table option. More...
 
void markForDelete ()
 Mark the table for delete. More...
 
void unmarkForDelete ()
 Unmark the table for delete. More...
 
Bool isMarkedForDelete () const
 Test if the table is marked for delete. More...
 
uInt nrow () const
 Get the number of rows. More...
 
Bool canAddRow () const
 Test if it is possible to add a row to this table. More...
 
void addRow (uInt nrrow=1, Bool initialize=False)
 Add one or more rows at the end of the table. More...
 
Bool canRemoveRow () const
 Test if it is possible to remove a row from this table. More...
 
void removeRow (uInt rownr)
 Remove the given row(s). More...
 
void removeRow (const Vector< uInt > &rownrs)
 
TableExprNode nodeRownr (uInt origin=0) const
 Create a TableExprNode object for the rownumber function. More...
 
TableExprNode nodeRandom () const
 Create a TableExprNode object for the rand function. More...
 
Table operator() (const TableExprNode &, uInt maxRow=0, uInt offset=0) const
 Select rows from a table using an select expression consisting of TableExprNode objects. More...
 
Table operator() (const Vector< uInt > &rownrs) const
 Select rows using a vector of row numbers. More...
 
Table operator() (const Block< Bool > &mask) const
 Select rows using a mask block. More...
 
Table project (const Block< String > &columnNames) const
 Project the given columns (i.e. More...
 
Table operator& (const Table &) const
 Do logical operations on a table. More...
 
Table operator| (const Table &) const
 Union with another table. More...
 
Table operator- (const Table &) const
 Subtract another table. More...
 
Table operator^ (const Table &) const
 Xor with another table. More...
 
Table operator! () const
 Take complement. More...
 
Table sort (const String &columnName, int=Sort::Ascending, int=Sort::ParSort) const
 Sort a table on one or more columns of scalars. More...
 
Table sort (const Block< String > &columnNames, int=Sort::Ascending, int=Sort::ParSort) const
 Sort on multiple columns. More...
 
Table sort (const Block< String > &columnNames, const Block< Int > &sortOrders, int=Sort::ParSort) const
 Sort on multiple columns. More...
 
Table sort (const Block< String > &columnNames, const Block< CountedPtr< BaseCompare > > &compareObjects, const Block< Int > &sortOrders, int=Sort::ParSort) const
 Sort on multiple columns. More...
 
Vector< uIntrowNumbers () const
 Get a vector of row numbers in the root table of rows in this table. More...
 
Vector< uIntrowNumbers (const Table &that, Bool tryFast=False) const
 Get a vector of row numbers in that table of rows in this table. More...
 
void addColumn (const ColumnDesc &columnDesc, Bool addToParent=True)
 Add a column to the table. More...
 
void addColumn (const ColumnDesc &columnDesc, const String &dataManager, Bool byName, Bool addToParent=True)
 Use an existing data manager with the given name or type. More...
 
void addColumn (const ColumnDesc &columnDesc, const DataManager &dataManager, Bool addToParent=True)
 Use the given data manager (which is a new one). More...
 
void addColumn (const TableDesc &tableDesc, const DataManager &dataManager, Bool addToParent=True)
 Add a bunch of columns using the given new data manager. More...
 
void addColumn (const TableDesc &tableDesc, const Record &dataManagerInfo, Bool addToParent=True)
 
Bool canRemoveColumn (const String &columnName) const
 Test if columns can be removed. More...
 
Bool canRemoveColumn (const Vector< String > &columnNames) const
 
void removeColumn (const String &columnName)
 Remove columns. More...
 
void removeColumn (const Vector< String > &columnName)
 
Bool canRenameColumn (const String &columnName) const
 Test if a column can be renamed. More...
 
void renameColumn (const String &newName, const String &oldName)
 Rename a column. More...
 
void renameHypercolumn (const String &newName, const String &oldName)
 
void getTableKeyword (AipsIO &, Bool openWritable)
 Read a table from AipsIO (for TableKeywords). More...
 
DataManagerfindDataManager (const String &name, Bool byColumn=False) const
 Find the data manager with the given name or for the given column name. More...
 
TableExprNode key (const String &keywordName) const
 
Create a TableExprNode object for a column or for a keyword

in the table keyword set. More...

 
TableExprNode key (const Vector< String > &fieldNames) const
 
TableExprNode col (const String &columnName) const
 
TableExprNode col (const String &columnName, const Vector< String > &fieldNames) const
 
TableExprNode keyCol (const String &name, const Vector< String > &fieldNames) const
 

Static Public Member Functions

static NewCalTable createCT (const casacore::String &tableName, casacore::Table::TableOption access, casacore::Table::TableType ttype, casacore::Bool doBackCompat=true)
 
static NewCalTablecreateCTptr (const casacore::String &tableName, casacore::Table::TableOption access, casacore::Table::TableType ttype, casacore::Bool doBackCompat=true)
 
static casacore::Bool CTBackCompat (const casacore::String &caltable)
 Handle backward compatibility. More...
 
static casacore::Bool conformant (const casacore::TableDesc &tabDesc)
 validate input table desc. More...
 
static casacore::Complex NCTtestvalueC (casacore::Int iant, casacore::Int ispw, casacore::Double ich, casacore::Double time, casacore::Double refTime, casacore::Double tint)
 Provide RO access to inline ROCTMainColumns mcols() const {return ROCTMainColumns(*this);};. More...
 
static casacore::Float NCTtestvalueF (casacore::Int iant, casacore::Int ispw, casacore::Double ich, casacore::Double time, casacore::Double refTime, casacore::Double tint)
 
- Static Public Member Functions inherited from casacore::Table
static ScratchCallbacksetScratchCallback (ScratchCallback *)
 Set the pointer to the ScratchCallback function. More...
 
static Table openTable (const String &tableName, TableOption=Table::Old, const TSMOption &=TSMOption())
 Try to open a table. More...
 
static Table openTable (const String &tableName, const TableLock &lockOptions, TableOption=Table::Old, const TSMOption &=TSMOption())
 
static Bool canDeleteTable (const String &tableName, Bool checkSubTables=False)
 Can the table be deleted? If true, function deleteTable can safely be called. More...
 
static Bool canDeleteTable (String &message, const String &tableName, Bool checkSubTables=False)
 
static void deleteTable (const String &tableName, Bool checkSubTables=False)
 Delete the table. More...
 
static Bool isOpened (const String &tableName)
 Is the table used (i.e. More...
 
static uInt nAutoLocks ()
 Determine the number of locked tables opened with the AutoLock option (Locked table means locked for read and/or write). More...
 
static void relinquishAutoLocks (Bool all=False)
 Unlock locked tables opened with the AutoLock option. More...
 
static Vector< StringgetLockedTables (FileLocker::LockType=FileLocker::Read, int lockOption=-1)
 Get the names of tables locked in this process. More...
 
static Bool isNativeDataType (DataType dtype)
 Test if the given data type is native to the table system. More...
 
static String fileName (const String &tableName)
 Make the table file name. More...
 
static Bool isReadable (const String &tableName, bool throwIf=False)
 Test if a table with the given name exists and is readable. More...
 
static uInt getLayout (TableDesc &desc, const String &tableName)
 Return the layout of a table (i.e. More...
 
static TableInfo tableInfo (const String &tableName)
 Get the table info of the table with the given name. More...
 
static Bool isWritable (const String &tableName, bool throwIf=False)
 Test if a table with the given name exists and is writable. More...
 
static Vector< StringnonWritableFiles (const String &tableName)
 Find the non-writable files in a table. More...
 

Private Member Functions

void fillGenericContents (casacore::Int nObs=1, casacore::Int nScanPerObs=1, casacore::Int nTimePerScan=1, casacore::Int nAnt=1, casacore::Int nSpw=1, casacore::Vector< casacore::Int > nChan=casacore::Vector< casacore::Int >(1, 1), casacore::Int nFld=1, casacore::Double rTime=0.0, casacore::Double tint=0.0, casacore::Bool verbose=false)
 Services for generic test table ctor Default rTime is 2012/01/06/12:00:00. More...
 
void fillGenericObs (casacore::Int nObs)
 
void fillGenericField (casacore::Int nFld)
 
void fillGenericAntenna (casacore::Int nAnt)
 
void fillGenericSpw (casacore::Int nSpw, casacore::Vector< casacore::Int > &nChan)
 
void fillGenericObs (const vi::SimpleSimVi2Parameters &ssp)
 Init subtables from SimpleSimVi2Parameters. More...
 
void fillGenericField (const vi::SimpleSimVi2Parameters &ssp)
 
void fillGenericAntenna (const vi::SimpleSimVi2Parameters &ssp)
 
void fillGenericSpw (const vi::SimpleSimVi2Parameters &ssp)
 
void makeSpwSingleChan ()
 Force Spw subtable to be all nchan=1 (very basic; uses chan n/2 freq) More...
 
void addPhoneyObs ()
 Handle pre-4.1 caltables that don't have OBS_ID (by adding a phoney one with a single OBS_ID. More...
 
void handleEphObj (const casacore::MSField &msfldtab, const casacore::String &msName)
 Handle Eph objects... More...
 

Private Attributes

CTObservation observation_p
 The subtables. More...
 
CTAntenna antenna_p
 
CTField field_p
 
CTSpectralWindow spectralWindow_p
 
CTHistory history_p
 

Friends

class SolvableVisCal
 

Additional Inherited Members

- Public Types inherited from casacore::Table
enum  TableOption {
  Old,
  New,
  NewNoReplace,
  Scratch,
  Update,
  Delete
}
 Define the possible options how a table can be opened. More...
 
enum  TableType {
  Plain,
  Memory
}
 Define the possible table types. More...
 
enum  EndianFormat {
  BigEndian,
  LittleEndian,
  LocalEndian,
  AipsrcEndian
}
 Define the possible endian formats in which table data can be stored. More...
 
typedef void ScratchCallback (const String &name, Bool isScratch, const String &oldName)
 Define the signature of the function being called when the state of a scratch table changes (i.e. More...
 
- Protected Member Functions inherited from casacore::Table
 Table (BaseTable *, Bool countIt=True)
 Construct a Table object from a BaseTable*. More...
 
void open (const String &name, const String &type, int tableOption, const TableLock &lockOptions, const TSMOption &tsmOpt)
 Open an existing table. More...
 
- Protected Attributes inherited from casacore::Table
BaseTablebaseTabPtr_p
 
Bool isCounted_p
 
uInt lastModCounter_p
 
- Static Protected Attributes inherited from casacore::Table
static ScratchCallbackscratchCallback_p
 

Detailed Description

Definition at line 111 of file NewCalTable.h.

Constructor & Destructor Documentation

casa::NewCalTable::NewCalTable ( )

Default null constructor, and destructor.

virtual casa::NewCalTable::~NewCalTable ( )
virtual
casa::NewCalTable::NewCalTable ( const casacore::String tableName,
CTDesc ctableDesc,
casacore::Table::TableOption  access = casacore::Table::New,
casacore::Table::TableType  ttype = casacore::Table::Plain 
)

Construct from a specified table name, calibration table descriptor and table access option.

Used for creating new tables.

casa::NewCalTable::NewCalTable ( casacore::SetupNewTable newTab,
casacore::uInt  nrow = 0,
casacore::Bool  initialize = false 
)

Construct from setupNewTable.

casa::NewCalTable::NewCalTable ( casacore::String  tableName,
VisCalEnum::VCParType  parType,
casacore::String  typeName,
casacore::String  msName,
casacore::Bool  doSingleChan 
)

Create an empty NewCalTable conveniently.

casa::NewCalTable::NewCalTable ( const casacore::String tableName,
casacore::Table::TableOption  access = casacore::Table::Old,
casacore::Table::TableType  ttype = casacore::Table::Memory 
)

Construct from a specified table name, and access option.

Used for accessing existing tables.

casa::NewCalTable::NewCalTable ( const casacore::String tableName,
const casacore::TableLock lockOptions,
casacore::Table::TableOption  access = casacore::Table::Old,
casacore::Table::TableType  ttype = casacore::Table::Memory 
)

control locking option

casa::NewCalTable::NewCalTable ( const casacore::Table table)

Construct from an existing table object.

casa::NewCalTable::NewCalTable ( const NewCalTable other)

Copy constructor.

casa::NewCalTable::NewCalTable ( casacore::String  tableName,
casacore::String  CorF,
casacore::Int  nObs = 1,
casacore::Int  nScanPerObs = 1,
casacore::Int  nTimePerScan = 1,
casacore::Int  nAnt = 1,
casacore::Int  nSpw = 1,
casacore::Vector< casacore::Int nChan = casacore::Vectorcasacore::Int >(1, 1),
casacore::Int  nFld = 1,
casacore::Double  rTime = 0.0,
casacore::Double  tint = 0.0,
casacore::Bool  disk = false,
casacore::Bool  verbose = false 
)

Create a vanilla NewCalTable from shapes (for testing purposes) Default rTime is 2012/01/06/12:00:00.

casa::NewCalTable::NewCalTable ( casacore::String  tableName,
casacore::String  CorF,
casacore::String  caltype,
const vi::SimpleSimVi2Parameters ssp,
casacore::Bool  disk = false,
casacore::Bool  verbose = false 
)

Create an empty NewCalTable from a SimpleSimVi2Parameters object NB: only for testing, for now.

Member Function Documentation

void casa::NewCalTable::addHistoryMessage ( casacore::String  app = "",
casacore::String  message = "none" 
)

Add a line to the HISTORY table.

void casa::NewCalTable::addPhoneyObs ( )
private

Handle pre-4.1 caltables that don't have OBS_ID (by adding a phoney one with a single OBS_ID.

CTAntenna& casa::NewCalTable::antenna ( void  )
inline

Definition at line 223 of file NewCalTable.h.

References antenna_p.

Referenced by casa::CTInterface::antenna().

const CTAntenna& casa::NewCalTable::antenna ( void  ) const
inline

Definition at line 228 of file NewCalTable.h.

References antenna_p.

void casa::NewCalTable::attachSubTables ( )
casacore::String casa::NewCalTable::CASAvers ( )

Report the CASA version at which the NCT was created (from header)

Referenced by casa::CLPatchPanel::CTCASAvers().

void casa::NewCalTable::clearSubtables ( )
static casacore::Bool casa::NewCalTable::conformant ( const casacore::TableDesc tabDesc)
static

validate input table desc.

over required caltable desc

void casa::NewCalTable::copyMemCalSubtable ( const casacore::Table otherSubtable,
casacore::Table subTable 
)
void casa::NewCalTable::copyMemCalSubtables ( const NewCalTable other)
static NewCalTable casa::NewCalTable::createCT ( const casacore::String tableName,
casacore::Table::TableOption  access,
casacore::Table::TableType  ttype,
casacore::Bool  doBackCompat = true 
)
static
static NewCalTable* casa::NewCalTable::createCTptr ( const casacore::String tableName,
casacore::Table::TableOption  access,
casacore::Table::TableType  ttype,
casacore::Bool  doBackCompat = true 
)
static
void casa::NewCalTable::createSubTables ( )

initialize reference to subtables

static casacore::Bool casa::NewCalTable::CTBackCompat ( const casacore::String caltable)
static

Handle backward compatibility.

CTField& casa::NewCalTable::field ( void  )
inline

Definition at line 224 of file NewCalTable.h.

References field_p.

Referenced by casa::CTInterface::field().

const CTField& casa::NewCalTable::field ( void  ) const
inline

Definition at line 229 of file NewCalTable.h.

References field_p.

void casa::NewCalTable::fillAntBasedMainRows ( casacore::uInt  nrows,
casacore::Double  time,
casacore::Double  interval,
casacore::Int  fieldId,
casacore::uInt  spwId,
casacore::Int  scanNo,
const casacore::Vector< casacore::Int > &  ant1list,
casacore::Int  refant,
const casacore::Cube< casacore::Complex > &  cparam,
const casacore::Cube< casacore::Bool > &  flag,
const casacore::Cube< casacore::Float > &  paramErr,
const casacore::Cube< casacore::Float > &  snr 
)

Fill in antenna-based solutions (obsId-less version calls obsId-capable version w/ obsId=0)

void casa::NewCalTable::fillAntBasedMainRows ( casacore::uInt  nrows,
casacore::Double  time,
casacore::Double  interval,
casacore::Int  fieldId,
casacore::uInt  spwId,
casacore::Int  obsId,
casacore::Int  scanNo,
const casacore::Vector< casacore::Int > &  ant1list,
casacore::Int  refant,
const casacore::Cube< casacore::Complex > &  cparam,
const casacore::Cube< casacore::Bool > &  flag,
const casacore::Cube< casacore::Float > &  paramErr,
const casacore::Cube< casacore::Float > &  snr 
)
void casa::NewCalTable::fillGenericAntenna ( casacore::Int  nAnt)
private
void casa::NewCalTable::fillGenericAntenna ( const vi::SimpleSimVi2Parameters ssp)
private
void casa::NewCalTable::fillGenericContents ( casacore::Int  nObs = 1,
casacore::Int  nScanPerObs = 1,
casacore::Int  nTimePerScan = 1,
casacore::Int  nAnt = 1,
casacore::Int  nSpw = 1,
casacore::Vector< casacore::Int nChan = casacore::Vectorcasacore::Int >(1, 1),
casacore::Int  nFld = 1,
casacore::Double  rTime = 0.0,
casacore::Double  tint = 0.0,
casacore::Bool  verbose = false 
)
private

Services for generic test table ctor Default rTime is 2012/01/06/12:00:00.

void casa::NewCalTable::fillGenericField ( casacore::Int  nFld)
private
void casa::NewCalTable::fillGenericField ( const vi::SimpleSimVi2Parameters ssp)
private
void casa::NewCalTable::fillGenericObs ( casacore::Int  nObs)
private
void casa::NewCalTable::fillGenericObs ( const vi::SimpleSimVi2Parameters ssp)
private

Init subtables from SimpleSimVi2Parameters.

void casa::NewCalTable::fillGenericSpw ( casacore::Int  nSpw,
casacore::Vector< casacore::Int > &  nChan 
)
private
void casa::NewCalTable::fillGenericSpw ( const vi::SimpleSimVi2Parameters ssp)
private
void casa::NewCalTable::flagAbsentSpws ( )

Set FLAG_ROW in SPECTRAL_WINDOW subtable for spws absent in MAIN.

casacore::Record casa::NewCalTable::getRowMain ( const casacore::Int jrow)

Get a row from cal_main.

void casa::NewCalTable::handleEphObj ( const casacore::MSField msfldtab,
const casacore::String msName 
)
private

Handle Eph objects...

CTHistory& casa::NewCalTable::history ( )
inline

Definition at line 226 of file NewCalTable.h.

References history_p.

const CTHistory& casa::NewCalTable::history ( ) const
inline

Definition at line 231 of file NewCalTable.h.

References history_p.

casacore::Bool casa::NewCalTable::isComplex ( )

casacore::Complex parameters? (else casacore::Float)

void casa::NewCalTable::makeSpwSingleChan ( )
private

Force Spw subtable to be all nchan=1 (very basic; uses chan n/2 freq)

void casa::NewCalTable::mergeSpwMetaInfo ( const NewCalTable other)

Merge SPW subtable rows from another NewCalTable.

static casacore::Complex casa::NewCalTable::NCTtestvalueC ( casacore::Int  iant,
casacore::Int  ispw,
casacore::Double  ich,
casacore::Double  time,
casacore::Double  refTime,
casacore::Double  tint 
)
static

Provide RO access to inline ROCTMainColumns mcols() const {return ROCTMainColumns(*this);};.

static casacore::Float casa::NewCalTable::NCTtestvalueF ( casacore::Int  iant,
casacore::Int  ispw,
casacore::Double  ich,
casacore::Double  time,
casacore::Double  refTime,
casacore::Double  tint 
)
static
CTObservation& casa::NewCalTable::observation ( )
inline

Definition at line 222 of file NewCalTable.h.

References observation_p.

Referenced by casa::CTInterface::observation().

const CTObservation& casa::NewCalTable::observation ( ) const
inline

Definition at line 227 of file NewCalTable.h.

References observation_p.

NewCalTable& casa::NewCalTable::operator= ( const NewCalTable other)

Assignment operator.

casacore::String casa::NewCalTable::polBasis ( )

Report the polarization basis (from header record)

void casa::NewCalTable::putRowMain ( const casacore::Int jrow,
CTMainRecord tableRec 
)

Put a row to cal_main.

void casa::NewCalTable::setMetaInfo ( const casacore::String msName)

Get rows of the data from the main table void fillRowsMain ();.

Set Meta data info from a parent casacore::MS

void casa::NewCalTable::setSpwFreqs ( casacore::Int  spw,
const casacore::Vector< casacore::Double > &  freq,
const casacore::Vector< casacore::Double > &  chanwidth = casacore::Vectorcasacore::Double >() 
)

Reset spw freq info.

void casa::NewCalTable::setTableInfo ( )

Set the casacore::TableInfo record.

CTSpectralWindow& casa::NewCalTable::spectralWindow ( )
inline

Definition at line 225 of file NewCalTable.h.

References spectralWindow_p.

Referenced by casa::CTInterface::spectralWindow().

const CTSpectralWindow& casa::NewCalTable::spectralWindow ( ) const
inline

Definition at line 230 of file NewCalTable.h.

References spectralWindow_p.

void casa::NewCalTable::writeToDisk ( const casacore::String tableName)

save to disk

Friends And Related Function Documentation

friend class SolvableVisCal
friend

Definition at line 114 of file NewCalTable.h.

Member Data Documentation

CTAntenna casa::NewCalTable::antenna_p
private

Definition at line 305 of file NewCalTable.h.

Referenced by antenna().

CTField casa::NewCalTable::field_p
private

Definition at line 306 of file NewCalTable.h.

Referenced by field().

CTHistory casa::NewCalTable::history_p
private

Definition at line 308 of file NewCalTable.h.

Referenced by history().

CTObservation casa::NewCalTable::observation_p
private

The subtables.

Definition at line 304 of file NewCalTable.h.

Referenced by observation().

CTSpectralWindow casa::NewCalTable::spectralWindow_p
private

Definition at line 307 of file NewCalTable.h.

Referenced by spectralWindow().


The documentation for this class was generated from the following file: