29 #ifndef MS_MEASUREMENTSET_H 30 #define MS_MEASUREMENTSET_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/ms/MeasurementSets/MSTable.h> 34 #include <casacore/ms/MeasurementSets/MSMainEnums.h> 35 #include <casacore/ms/MeasurementSets/MSAntenna.h> 36 #include <casacore/ms/MeasurementSets/MSDataDescription.h> 37 #include <casacore/ms/MeasurementSets/MSDoppler.h> 38 #include <casacore/ms/MeasurementSets/MSFeed.h> 39 #include <casacore/ms/MeasurementSets/MSField.h> 40 #include <casacore/ms/MeasurementSets/MSFlagCmd.h> 41 #include <casacore/ms/MeasurementSets/MSFreqOffset.h> 42 #include <casacore/ms/MeasurementSets/MSHistory.h> 43 #include <casacore/ms/MeasurementSets/MSObservation.h> 44 #include <casacore/ms/MeasurementSets/MSPointing.h> 45 #include <casacore/ms/MeasurementSets/MSPolarization.h> 46 #include <casacore/ms/MeasurementSets/MSProcessor.h> 47 #include <casacore/ms/MeasurementSets/MSSource.h> 48 #include <casacore/ms/MeasurementSets/MSSpectralWindow.h> 49 #include <casacore/ms/MeasurementSets/MSState.h> 50 #include <casacore/ms/MeasurementSets/MSSysCal.h> 51 #include <casacore/ms/MeasurementSets/MSWeather.h> 83 typedef std::set<MSMainEnums::PredefinedKeywords>
Eligible;
102 template <
class T>
class Block;
242 MSMainEnums::PredefinedKeywords>,
306 setMemoryResidentSubtables (
const MrsEligibility & mrsEligibility);
311 String antennaTableName()
const;
312 String dataDescriptionTableName()
const;
313 String dopplerTableName()
const;
314 String feedTableName()
const;
315 String fieldTableName()
const;
316 String flagCmdTableName()
const;
317 String freqOffsetTableName()
const;
318 String historyTableName()
const;
319 String observationTableName()
const;
320 String pointingTableName()
const;
321 String polarizationTableName()
const;
322 String processorTableName()
const;
323 String sourceTableName()
const;
324 String spectralWindowTableName()
const;
325 String stateTableName()
const;
326 String sysCalTableName()
const;
327 String weatherTableName()
const;
390 Bool makeComplexData();
394 Bool validateMeasureRefs();
414 void clearSubtables ();
418 void copySubtable (
const Table & otherSubtable,
Table & subTable);
424 Bool isEligibleForMemoryResidency (
const String & subtableName)
const;
427 void openMrSubtables ();
432 return "MemoryResidentSubtables";
446 template <
typename Subtable>
448 openMrSubtable (Subtable & subtable,
const String & subtableName);
451 template <
typename Subtable>
453 openSubtable (Subtable & subtable,
const String & subtableName,
Bool useLock);
A Measure: astronomical direction.
A Table intended to hold a MeasurementSet OBSERVATIONLOG table.
A Table intended to hold a MeasurementSet PROCESSOR table.
A Measure: position on Earth.
A Table intended to hold a MeasurementSet DOPPLER table.
Create a new table - define shapes, data managers, etc.
A Table intended to hold a MeasurementSet OBSERVATION table.
TableExprNode time(const TableExprNode &node)
const MSObservation & observation() const
Main interface class to a read/write table.
MSSpectralWindow & spectralWindow()
new table, which gets marked for delete
A Table intended to hold a MeasurementSet POINTING table.
A Table intended to hold a MeasurementSet DATADESCRIPTION table.
MSMainEnums::PredefinedKeywords SubtableId
A Table intended to hold a MeasurementSet WEATHER table.
const MSSource & source() const
MeasurementSet MS
MeasurementSet is too cumbersome for a number of common uses, so we give a typedef here...
bool doNotLockSubtables_p
PtrHolder< T > & operator=(const PtrHolder< T > &other)
const MSProcessor & processor() const
const MSHistory & history() const
A Table intended to hold a MeasurementSet FEED table.
const MSAntenna & antenna() const
A Table intended to hold a MeasurementSet SYSCAL table.
A Measure: instant in time.
const MSPointing & pointing() const
static MrsEligibility eligibleSubtables(SubtableId subtableId,...)
A Table intended to hold a MeasurementSet ANTENNA table.
static MrsEligibility allEligible()
Factory methods to create MrsEligibility sets.
MSObservation observation_p
MSObservation & observation()
friend MrsEligibility operator+(const MrsEligibility &a, SubtableId subtableId)
A Measure: wave characteristics.
friend MrsEligibility operator-(const MrsEligibility &a, SubtableId subtableId)
Creates a new MrsEligibilitySet by adding or removing the specified subtable or the specified set of ...
A Table intended to hold a MeasurementSet SOURCE table.
std::set< MSMainEnums::PredefinedKeywords > Eligible
const MSSpectralWindow & spectralWindow() const
A Table intended to hold a MeasurementSet STATE table.
const MSDataDescription & dataDescription() const
Bool memoryResidentSubtables_p
static MrsEligibility noneEligible()
MSProcessor & processor()
MSSpectralWindow spectralWindow_p
static Bool isSubtable(SubtableId subtableId)
A Table intended to hold a MeasurementSet POLARIZATION table.
MSPolarization polarization_p
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
MSAntenna & antenna()
Access functions for the subtables, using the MS-like interface for each.
MSDataDescription & dataDescription()
const MSFlagCmd & flagCmd() const
static const MrsEligibility allSubtables_p
Class to hold table lock options.
const MSFreqOffset & freqOffset() const
const MSWeather & weather() const
A Table intended to hold a MeasurementSet FIELD table.
A Table intended to hold astronomical data (a set of Measurements).
static MrsEligibility defaultEligible()
const MSField & field() const
MSFreqOffset & freqOffset()
const MSFeed & feed() const
MSFreqOffset freqOffset_p
const MSDoppler & doppler() const
const MSPolarization & polarization() const
A Table intended to hold astronomical data.
MSPolarization & polarization()
String: the storage and methods of handling collections of characters.
A Table intended to hold a MeasurementSet FLAG_CMD table.
MrsEligibility mrsEligibility_p
PredefinedKeywords
Keywords with a predefined meaning.
MSAntenna antenna_p
keep references to the subtables
static String getMrsAipsRcBase()
The top level name for MRS related CASARC settings.
Enums for the MeasurementSet main table.
const MSState & state() const
this file contains all the compiler specific defines
A Table intended to hold a MeasurementSet FREQ_OFFSET table.
const MSSysCal & sysCal() const
static MrsEligibility allButTheseSubtables(SubtableId ineligibleSubtableId,...)
TableOption
Define the possible options how a table can be opened.
MSDataDescription dataDesc_p
A Table intended to hold a MeasurementSet SPECTRAL_WINDOW table.
Bool isEligible(SubtableId subtableId) const
Returns true if the specified subtable is in the set of subtables eligible for memory residency...