casa
$Rev:20696$
|
#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 | 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, Int 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, Int 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. | |
Private Attributes | |
CTObservation | observation_p |
The subtables. | |
CTAntenna | antenna_p |
CTField | field_p |
CTSpectralWindow | spectralWindow_p |
CTHistory | history_p |
Definition at line 109 of file NewCalTable.h.
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.
CTAntenna& casa::NewCalTable::antenna | ( | ) | [inline] |
Definition at line 204 of file NewCalTable.h.
References antenna_p.
Referenced by casa::CTInterface::antenna().
const CTAntenna& casa::NewCalTable::antenna | ( | ) | const [inline] |
Definition at line 209 of file NewCalTable.h.
References antenna_p.
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] |
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.
CTField& casa::NewCalTable::field | ( | ) | [inline] |
Definition at line 205 of file NewCalTable.h.
References field_p.
Referenced by casa::CTInterface::field().
const CTField& casa::NewCalTable::field | ( | ) | const [inline] |
Definition at line 210 of file NewCalTable.h.
References field_p.
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::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::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] |
Record casa::NewCalTable::getRowMain | ( | const Int & | jrow | ) |
Get a row from cal_main.
CTHistory& casa::NewCalTable::history | ( | ) | [inline] |
Definition at line 207 of file NewCalTable.h.
References history_p.
const CTHistory& casa::NewCalTable::history | ( | ) | const [inline] |
Definition at line 212 of file NewCalTable.h.
References history_p.
Complex parameters? (else Float)
void casa::NewCalTable::makeSpwSingleChan | ( | ) | [private] |
Force Spw subtable to be all nchan=1 (very basic; uses chan n/2 freq)
static Complex casa::NewCalTable::NCTtestvalueC | ( | Int | iant, |
Int | ispw, | ||
Int | 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, | ||
Int | ich, | ||
Double | time, | ||
Double | refTime, | ||
Double | tint | ||
) | [static] |
CTObservation& casa::NewCalTable::observation | ( | ) | [inline] |
Definition at line 203 of file NewCalTable.h.
References observation_p.
Referenced by casa::CTInterface::observation().
const CTObservation& casa::NewCalTable::observation | ( | ) | const [inline] |
Definition at line 208 of file NewCalTable.h.
References observation_p.
NewCalTable& casa::NewCalTable::operator= | ( | const NewCalTable & | other | ) |
Assignment operator.
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.
CTSpectralWindow& casa::NewCalTable::spectralWindow | ( | ) | [inline] |
Definition at line 206 of file NewCalTable.h.
References spectralWindow_p.
Referenced by casa::CTInterface::spectralWindow().
const CTSpectralWindow& casa::NewCalTable::spectralWindow | ( | ) | const [inline] |
Definition at line 211 of file NewCalTable.h.
References spectralWindow_p.
void casa::NewCalTable::writeToDisk | ( | const String & | tableName | ) |
save to disk
CTAntenna casa::NewCalTable::antenna_p [private] |
Definition at line 270 of file NewCalTable.h.
Referenced by antenna().
CTField casa::NewCalTable::field_p [private] |
Definition at line 271 of file NewCalTable.h.
Referenced by field().
CTHistory casa::NewCalTable::history_p [private] |
Definition at line 273 of file NewCalTable.h.
Referenced by history().
Definition at line 272 of file NewCalTable.h.
Referenced by spectralWindow().