casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
casa::NewCalTable Class Reference

#include <NewCalTable.h>

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

List of all members.

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.
NewCalTableoperator= (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
CTObservationobservation ()
CTAntennaantenna ()
CTFieldfield ()
CTSpectralWindowspectralWindow ()
CTHistoryhistory ()
const CTObservationobservation () const
const CTAntennaantenna () const
const CTFieldfield () const
const CTSpectralWindowspectralWindow () const
const CTHistoryhistory () 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 > &paramErr, 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 > &paramErr, 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 NewCalTablecreateCTptr (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

Detailed Description

Definition at line 109 of file NewCalTable.h.


Constructor & Destructor Documentation

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.

Construct from a specified table name, and access option.

Used for accessing existing tables.

Construct from an existing table object.

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 = VectorInt >(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.


Member Function Documentation

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.

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.

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 
)
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]

initialize reference to subtables

static Bool casa::NewCalTable::CTBackCompat ( const String caltable) [static]

Handle backward compatibility.

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 = VectorInt >(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]

Get a row from cal_main.

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)

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]

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 = VectorDouble >() 
)

Reset spw freq info.

Set the TableInfo record.

Definition at line 206 of file NewCalTable.h.

References spectralWindow_p.

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

Definition at line 211 of file NewCalTable.h.

References spectralWindow_p.

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

save to disk


Member Data Documentation

Definition at line 270 of file NewCalTable.h.

Referenced by antenna().

Definition at line 271 of file NewCalTable.h.

Referenced by field().

Definition at line 273 of file NewCalTable.h.

Referenced by history().

The subtables.

Definition at line 269 of file NewCalTable.h.

Referenced by observation().

Definition at line 272 of file NewCalTable.h.

Referenced by spectralWindow().


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