#include <NewCalTable.h>
Public Member Functions | |
| NewCalTable () | |
| Default null constructor, and destructor. | |
| virtual | ~NewCalTable () |
| NewCalTable (const String &tableName, CTDesc &ctableDesc, Table::TableOption access=Table::New, Table::TableType ttype=Table::Plain) | |
| Construct from a specified table name, calibration table descriptor and table access option. | |
| NewCalTable (SetupNewTable &newTab, uInt nrow=0, Bool initialize=False) | |
| Construct from setupNewTable. | |
| NewCalTable (String tableName, VisCalEnum::VCParType parType, String typeName, String msName, Bool doSingleChan) | |
| Create an empty NewCalTable conveniently. | |
| NewCalTable (const String &tableName, Table::TableOption access=Table::Old, Table::TableType ttype=Table::Memory) | |
| Construct from a specified table name, and access option. | |
| NewCalTable (const Table &table) | |
| Construct from an existing table object. | |
| NewCalTable (const NewCalTable &other) | |
| Copy constructor. | |
| NewCalTable (String tableName, String CorF, Int nObs=1, Int nScanPerObs=1, Int nTimePerScan=1, Int nAnt=1, Int nSpw=1, Vector< Int > nChan=Vector< Int >(1, 1), Int nFld=1, Double rTime=0.0, Double tint=0.0, Bool disk=False, Bool verbose=False) | |
| Create a vanilla NewCalTable from shapes (for testing purposes) Default rTime is 2012/01/06/12:00:00. | |
| NewCalTable & | operator= (const NewCalTable &other) |
| Assignment operator. | |
| void | setTableInfo () |
| Set the TableInfo record. | |
| void | createSubTables () |
| initialize reference to subtables | |
| void | attachSubTables () |
| void | clearSubtables () |
| void | copyMemCalSubtables (const NewCalTable &other) |
| void | copyMemCalSubtable (const Table &otherSubtable, Table &subTable) |
| Bool | isComplex () |
| Complex parameters? (else Float). | |
| String | polBasis () |
| Report the polarization basis (from header record). | |
| Record | getRowMain (const Int &jrow) |
| Get a row from cal_main. | |
| void | putRowMain (const Int &jrow, CTMainRecord &tableRec) |
| Put a row to cal_main. | |
| void | setMetaInfo (const String &msName) |
| Get rows of the data from the main table void fillRowsMain ();. | |
| void | writeToDisk (const String &tableName) |
| save to disk | |
| CTObservation & | observation () |
| CTAntenna & | antenna () |
| CTField & | field () |
| CTSpectralWindow & | spectralWindow () |
| CTHistory & | history () |
| const CTObservation & | observation () const |
| const CTAntenna & | antenna () const |
| const CTField & | field () const |
| const CTSpectralWindow & | spectralWindow () const |
| const CTHistory & | history () const |
| void | fillAntBasedMainRows (uInt nrows, Double time, Double interval, Int fieldId, uInt spwId, Int scanNo, const Vector< Int > &ant1list, Int refant, const Cube< Complex > &cparam, const Cube< Bool > &flag, const Cube< Float > ¶mErr, const Cube< Float > &snr) |
| Fill in antenna-based solutions (obsId-less version calls obsId-capable version w/ obsId=0). | |
| void | fillAntBasedMainRows (uInt nrows, Double time, Double interval, Int fieldId, uInt spwId, Int obsId, Int scanNo, const Vector< Int > &ant1list, Int refant, const Cube< Complex > &cparam, const Cube< Bool > &flag, const Cube< Float > ¶mErr, const Cube< Float > &snr) |
| void | setSpwFreqs (Int spw, const Vector< Double > &freq, const Vector< Double > &chanwidth=Vector< Double >()) |
| Reset spw freq info. | |
| void | flagAbsentSpws () |
| Set FLAG_ROW in SPECTRAL_WINDOW subtable for spws absent in MAIN. | |
| void | mergeSpwMetaInfo (const NewCalTable &other) |
| Merge SPW subtable rows from another NewCalTable. | |
| void | addHistoryMessage (String app="", String message="none") |
| Add a line to the HISTORY table. | |
Static Public Member Functions | |
| static NewCalTable | createCT (const String &tableName, Table::TableOption access, Table::TableType ttype, Bool doBackCompat=True) |
| static NewCalTable * | createCTptr (const String &tableName, Table::TableOption access, Table::TableType ttype, Bool doBackCompat=True) |
| static Bool | CTBackCompat (const String &caltable) |
| Handle backward compatibility. | |
| static Bool | conformant (const TableDesc &tabDesc) |
| validate input table desc. | |
| static Complex | NCTtestvalueC (Int iant, Int ispw, Double ich, Double time, Double refTime, Double tint) |
| Provide RO access to inline ROCTMainColumns mcols() const {return ROCTMainColumns(*this);};. | |
| static Float | NCTtestvalueF (Int iant, Int ispw, Double ich, Double time, Double refTime, Double tint) |
Private Member Functions | |
| void | fillGenericContents (Int nObs=1, Int nScanPerObs=1, Int nTimePerScan=1, Int nAnt=1, Int nSpw=1, Vector< Int > nChan=Vector< Int >(1, 1), Int nFld=1, Double rTime=0.0, Double tint=0.0, Bool verbose=False) |
| Services for generic test table ctor Default rTime is 2012/01/06/12:00:00. | |
| void | fillGenericObs (Int nObs) |
| void | fillGenericField (Int nFld) |
| void | fillGenericAntenna (Int nAnt) |
| void | fillGenericSpw (Int nSpw, Vector< Int > &nChan) |
| void | makeSpwSingleChan () |
| Force Spw subtable to be all nchan=1 (very basic; uses chan n/2 freq). | |
| void | addPhoneyObs () |
| Handle pre-4.1 caltables that don't have OBS_ID (by adding a phoney one with a single OBS_ID. | |
| void | handleEphObj (const MSField &msfldtab, const String &msName) |
| Handle Eph objects. | |
Private Attributes | |
| CTObservation | observation_p |
| The subtables. | |
| CTAntenna | antenna_p |
| CTField | field_p |
| CTSpectralWindow | spectralWindow_p |
| CTHistory | history_p |
Friends | |
| class | SolvableVisCal |
Definition at line 109 of file NewCalTable.h.
| casa::NewCalTable::NewCalTable | ( | ) |
Default null constructor, and destructor.
| virtual casa::NewCalTable::~NewCalTable | ( | ) | [virtual] |
| casa::NewCalTable::NewCalTable | ( | const String & | tableName, | |
| CTDesc & | ctableDesc, | |||
| Table::TableOption | access = Table::New, |
|||
| Table::TableType | ttype = Table::Plain | |||
| ) |
Construct from a specified table name, calibration table descriptor and table access option.
Used for creating new tables.
| casa::NewCalTable::NewCalTable | ( | SetupNewTable & | newTab, | |
| uInt | nrow = 0, |
|||
| Bool | initialize = False | |||
| ) |
Construct from setupNewTable.
| casa::NewCalTable::NewCalTable | ( | String | tableName, | |
| VisCalEnum::VCParType | parType, | |||
| String | typeName, | |||
| String | msName, | |||
| Bool | doSingleChan | |||
| ) |
Create an empty NewCalTable conveniently.
| casa::NewCalTable::NewCalTable | ( | const String & | tableName, | |
| Table::TableOption | access = Table::Old, |
|||
| Table::TableType | ttype = Table::Memory | |||
| ) |
Construct from a specified table name, and access option.
Used for accessing existing tables.
| casa::NewCalTable::NewCalTable | ( | const Table & | table | ) |
Construct from an existing table object.
| casa::NewCalTable::NewCalTable | ( | const NewCalTable & | other | ) |
Copy constructor.
| casa::NewCalTable::NewCalTable | ( | String | tableName, | |
| String | CorF, | |||
| Int | nObs = 1, |
|||
| Int | nScanPerObs = 1, |
|||
| Int | nTimePerScan = 1, |
|||
| Int | nAnt = 1, |
|||
| Int | nSpw = 1, |
|||
| Vector< Int > | nChan = Vector< Int >(1, 1), |
|||
| Int | nFld = 1, |
|||
| Double | rTime = 0.0, |
|||
| Double | tint = 0.0, |
|||
| Bool | disk = False, |
|||
| Bool | verbose = False | |||
| ) |
Create a vanilla NewCalTable from shapes (for testing purposes) Default rTime is 2012/01/06/12:00:00.
| void casa::NewCalTable::addHistoryMessage | ( | String | app = "", |
|
| 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.
| const CTAntenna& casa::NewCalTable::antenna | ( | void | ) | const [inline] |
Definition at line 212 of file NewCalTable.h.
References antenna_p.
| CTAntenna& casa::NewCalTable::antenna | ( | void | ) | [inline] |
Definition at line 207 of file NewCalTable.h.
References antenna_p.
Referenced by casa::CTInterface::antenna().
| void casa::NewCalTable::attachSubTables | ( | ) |
| void casa::NewCalTable::clearSubtables | ( | ) |
| static Bool casa::NewCalTable::conformant | ( | const TableDesc & | tabDesc | ) | [static] |
validate input table desc.
over required caltable desc
| void casa::NewCalTable::copyMemCalSubtable | ( | const Table & | otherSubtable, | |
| Table & | subTable | |||
| ) |
| void casa::NewCalTable::copyMemCalSubtables | ( | const NewCalTable & | other | ) |
| static NewCalTable casa::NewCalTable::createCT | ( | const String & | tableName, | |
| Table::TableOption | access, | |||
| Table::TableType | ttype, | |||
| Bool | doBackCompat = True | |||
| ) | [static] |
Referenced by casa::CalAnalysis::stats().
| static NewCalTable* casa::NewCalTable::createCTptr | ( | const String & | tableName, | |
| Table::TableOption | access, | |||
| Table::TableType | ttype, | |||
| Bool | doBackCompat = True | |||
| ) | [static] |
| void casa::NewCalTable::createSubTables | ( | ) |
initialize reference to subtables
| static Bool casa::NewCalTable::CTBackCompat | ( | const String & | caltable | ) | [static] |
Handle backward compatibility.
| const CTField& casa::NewCalTable::field | ( | void | ) | const [inline] |
Definition at line 213 of file NewCalTable.h.
References field_p.
| CTField& casa::NewCalTable::field | ( | void | ) | [inline] |
Definition at line 208 of file NewCalTable.h.
References field_p.
Referenced by casa::CTInterface::field().
| void casa::NewCalTable::fillAntBasedMainRows | ( | uInt | nrows, | |
| Double | time, | |||
| Double | interval, | |||
| Int | fieldId, | |||
| uInt | spwId, | |||
| Int | obsId, | |||
| Int | scanNo, | |||
| const Vector< Int > & | ant1list, | |||
| Int | refant, | |||
| const Cube< Complex > & | cparam, | |||
| const Cube< Bool > & | flag, | |||
| const Cube< Float > & | paramErr, | |||
| const Cube< Float > & | snr | |||
| ) |
| void casa::NewCalTable::fillAntBasedMainRows | ( | uInt | nrows, | |
| Double | time, | |||
| Double | interval, | |||
| Int | fieldId, | |||
| uInt | spwId, | |||
| Int | scanNo, | |||
| const Vector< Int > & | ant1list, | |||
| Int | refant, | |||
| const Cube< Complex > & | cparam, | |||
| const Cube< Bool > & | flag, | |||
| const Cube< Float > & | paramErr, | |||
| const Cube< Float > & | snr | |||
| ) |
Fill in antenna-based solutions (obsId-less version calls obsId-capable version w/ obsId=0).
| void casa::NewCalTable::fillGenericAntenna | ( | Int | nAnt | ) | [private] |
| void casa::NewCalTable::fillGenericContents | ( | Int | nObs = 1, |
|
| Int | nScanPerObs = 1, |
|||
| Int | nTimePerScan = 1, |
|||
| Int | nAnt = 1, |
|||
| Int | nSpw = 1, |
|||
| Vector< Int > | nChan = Vector< Int >(1, 1), |
|||
| Int | nFld = 1, |
|||
| Double | rTime = 0.0, |
|||
| Double | tint = 0.0, |
|||
| Bool | verbose = False | |||
| ) | [private] |
Services for generic test table ctor Default rTime is 2012/01/06/12:00:00.
| void casa::NewCalTable::fillGenericField | ( | Int | nFld | ) | [private] |
| void casa::NewCalTable::fillGenericObs | ( | Int | nObs | ) | [private] |
| void casa::NewCalTable::fillGenericSpw | ( | Int | nSpw, | |
| Vector< Int > & | nChan | |||
| ) | [private] |
| void casa::NewCalTable::flagAbsentSpws | ( | ) |
Set FLAG_ROW in SPECTRAL_WINDOW subtable for spws absent in MAIN.
| Record casa::NewCalTable::getRowMain | ( | const Int & | jrow | ) |
Get a row from cal_main.
| void casa::NewCalTable::handleEphObj | ( | const MSField & | msfldtab, | |
| const String & | msName | |||
| ) | [private] |
Handle Eph objects.
.\.
| const CTHistory& casa::NewCalTable::history | ( | ) | const [inline] |
Definition at line 215 of file NewCalTable.h.
References history_p.
| CTHistory& casa::NewCalTable::history | ( | ) | [inline] |
Definition at line 210 of file NewCalTable.h.
References history_p.
| Bool casa::NewCalTable::isComplex | ( | ) |
Complex parameters? (else 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 Complex casa::NewCalTable::NCTtestvalueC | ( | Int | iant, | |
| Int | ispw, | |||
| Double | ich, | |||
| Double | time, | |||
| Double | refTime, | |||
| Double | tint | |||
| ) | [static] |
Provide RO access to inline ROCTMainColumns mcols() const {return ROCTMainColumns(*this);};.
| static Float casa::NewCalTable::NCTtestvalueF | ( | Int | iant, | |
| Int | ispw, | |||
| Double | ich, | |||
| Double | time, | |||
| Double | refTime, | |||
| Double | tint | |||
| ) | [static] |
| const CTObservation& casa::NewCalTable::observation | ( | ) | const [inline] |
Definition at line 211 of file NewCalTable.h.
References observation_p.
| CTObservation& casa::NewCalTable::observation | ( | ) | [inline] |
Definition at line 206 of file NewCalTable.h.
References observation_p.
Referenced by casa::CTInterface::observation().
| NewCalTable& casa::NewCalTable::operator= | ( | const NewCalTable & | other | ) |
Assignment operator.
| String casa::NewCalTable::polBasis | ( | ) |
Report the polarization basis (from header record).
| void casa::NewCalTable::putRowMain | ( | const Int & | jrow, | |
| CTMainRecord & | tableRec | |||
| ) |
Put a row to cal_main.
| void casa::NewCalTable::setMetaInfo | ( | const String & | msName | ) |
Get rows of the data from the main table void fillRowsMain ();.
Set Meta data info from a parent MS
| void casa::NewCalTable::setSpwFreqs | ( | Int | spw, | |
| const Vector< Double > & | freq, | |||
| const Vector< Double > & | chanwidth = Vector< Double >() | |||
| ) |
Reset spw freq info.
| void casa::NewCalTable::setTableInfo | ( | ) |
Set the TableInfo record.
| const CTSpectralWindow& casa::NewCalTable::spectralWindow | ( | ) | const [inline] |
Definition at line 214 of file NewCalTable.h.
References spectralWindow_p.
| CTSpectralWindow& casa::NewCalTable::spectralWindow | ( | ) | [inline] |
Definition at line 209 of file NewCalTable.h.
References spectralWindow_p.
Referenced by casa::CTInterface::spectralWindow().
| void casa::NewCalTable::writeToDisk | ( | const String & | tableName | ) |
save to disk
friend class SolvableVisCal [friend] |
Definition at line 112 of file NewCalTable.h.
CTAntenna casa::NewCalTable::antenna_p [private] |
Definition at line 283 of file NewCalTable.h.
Referenced by antenna().
CTField casa::NewCalTable::field_p [private] |
Definition at line 284 of file NewCalTable.h.
Referenced by field().
CTHistory casa::NewCalTable::history_p [private] |
Definition at line 286 of file NewCalTable.h.
Referenced by history().
Definition at line 285 of file NewCalTable.h.
Referenced by spectralWindow().
1.6.1