29 #ifndef CALIBRATION_NEWCALTABLE_H
30 #define CALIBRATION_NEWCALTABLE_H
void copyMemCalSubtable(const casacore::Table &otherSubtable, casacore::Table &subTable)
A Table intended to hold a MeasurementSet OBSERVATIONLOG table.
casacore::Record getRowMain(const casacore::Int &jrow)
Get a row from cal_main.
CTSpectralWindow spectralWindow_p
void addHistoryMessage(casacore::String app="", casacore::String message="none")
Add a line to the HISTORY table.
Create a new table - define shapes, data managers, etc.
void fillGenericSpw(casacore::Int nSpw, casacore::Vector< casacore::Int > &nChan)
CTSpectralWindow & spectralWindow()
void setMetaInfo(const casacore::String &msName)
Get rows of the data from the main table void fillRowsMain ();.
A Table intended to hold a MeasurementSet OBSERVATION table.
std::complex< Float > Complex
void handleEphObj(const casacore::MSField &msfldtab, const casacore::String &msName)
Handle Eph objects...
A class to provide easy read-write access to MSObservation columns.
Main interface class to a read/write table.
A class to provide easy access to MSField columns.
casacore::MSObservation CTObservation
casacore::MSSpectralWindow CTSpectralWindow
casacore::Bool isComplex()
casacore::Complex parameters? (else casacore::Float)
static casacore::Bool CTBackCompat(const casacore::String &caltable)
Handle backward compatibility.
ABSTRACT TOOL CLASSES A PlotTool is a higher level event handler for a PlotCanvas The idea is to take common tasks which may require multiple events and put them in one place PlotTools also provide additional functionality in that they can be active and blocking non blocking The PlotCanvas will only send events to active and will not send events to later tools or event handlers if the latest tool was blocking In this way a single tool can be used to handle ALL user interaction via the GUI at one time
A class to provide easy read-write access to MSHistory columns.
casacore::MSFieldColumns CTFieldColumns
casacore::String CASAvers()
Report the CASA version at which the NCT was created (from header)
casacore::MSObservationColumns CTObservationColumns
static NewCalTable createCT(const casacore::String &tableName, casacore::Table::TableOption access, casacore::Table::TableType ttype, casacore::Bool doBackCompat=true)
A class to provide easy read-only access to MSASpectralWindow columns.
A Table intended to hold a MeasurementSet ANTENNA table.
const String & tableName() const
Get the table name.
virtual casacore::String typeName()
Return type name as string.
A class to provide easy read-write access to MSField columns.
casacore::MSAntennaColumns CTAntennaColumns
CTObservation observation_p
The subtables.
void putRowMain(const casacore::Int &jrow, CTMainRecord &tableRec)
Put a row to cal_main.
casacore::ROMSAntennaColumns ROCTAntennaColumns
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.
static casacore::Float NCTtestvalueF(casacore::Int iant, casacore::Int ispw, casacore::Double ich, casacore::Double time, casacore::Double refTime, casacore::Double tint)
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.
CTObservation & observation()
casacore::MSAntenna CTAntenna
NewCalTable & operator=(const NewCalTable &other)
Assignment operator.
casacore::MSHistory CTHistory
A class to provide easy read-only access to MSHistory columns.
plain table (stored on disk)
void setTableInfo()
Set the casacore::TableInfo record.
const CTAntenna & antenna() const
A class to provide easy read-write access to MSSpectralWindow columns.
void copyMemCalSubtables(const NewCalTable &other)
CTDesc: Define the format of calibration tables.
const TableLock & lockOptions() const
Get the locking options.
void makeSpwSingleChan()
Force Spw subtable to be all nchan=1 (very basic; uses chan n/2 freq)
A class to provide easy read-write access to MSAntenna columns.
casacore::ROMSObservationColumns ROCTObservationColumns
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
void mergeSpwMetaInfo(const NewCalTable &other)
Merge SPW subtable rows from another NewCalTable.
casacore::ROMSSpWindowColumns ROCTSpWindowColumns
void fillGenericAntenna(casacore::Int nAnt)
uInt nrow() const
Get the number of rows.
casacore::String polBasis()
Report the polarization basis (from header record)
NewCalTable()
Default null constructor, and destructor.
static casacore::Bool conformant(const casacore::TableDesc &tabDesc)
validate input table desc.
void addPhoneyObs()
Handle pre-4.1 caltables that don't have OBS_ID (by adding a phoney one with a single OBS_ID...
Class to hold table lock options.
const CTSpectralWindow & spectralWindow() const
A Table intended to hold a MeasurementSet FIELD table.
casacore::MSHistoryColumns CTHistoryColumns
casacore::MSField CTField
NewCalTable: New Calibration table access and creation.
casacore::ROMSFieldColumns ROCTFieldColumns
void flagAbsentSpws()
Set FLAG_ROW in SPECTRAL_WINDOW subtable for spws absent in MAIN.
static NewCalTable * createCTptr(const casacore::String &tableName, casacore::Table::TableOption access, casacore::Table::TableType ttype, casacore::Bool doBackCompat=true)
A class to provide easy read-only access to MSObservation columns.
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 > ¶mErr, const casacore::Cube< casacore::Float > &snr)
Fill in antenna-based solutions (obsId-less version calls obsId-capable version w/ obsId=0) ...
A class to provide easy read-only access to MSAntenna columns.
const CTObservation & observation() const
String: the storage and methods of handling collections of characters.
casacore::MSSpWindowColumns CTSpWindowColumns
Define the structure of a Casacore table.
TableType
Define the possible table types.
const CTField & field() const
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);};.
void fillGenericField(casacore::Int nFld)
void writeToDisk(const casacore::String &tableName)
save to disk
void createSubTables()
initialize reference to subtables
const CTHistory & history() const
void fillGenericObs(casacore::Int nObs)
TableOption
Define the possible options how a table can be opened.
casacore::ROMSHistoryColumns ROCTHistoryColumns
CTMainRecord: Calibration table record access and creation.
A Table intended to hold a MeasurementSet SPECTRAL_WINDOW table.