28 #ifndef MS_MSMETADATA_H 29 #define MS_MSMETADATA_H 31 #include <casacore/casa/aips.h> 32 #include <casacore/casa/Quanta/QVector.h> 33 #include <casacore/measures/Measures/MFrequency.h> 34 #include <casacore/measures/Measures/MPosition.h> 35 #include <casacore/ms/MeasurementSets/MeasurementSet.h> 36 #include <casacore/ms/MeasurementSets/MSPointingColumns.h> 37 #include <casacore/casa/Utilities/CountedPtr.h> 42 template <
class T>
class ArrayColumn;
134 vector<std::set<uInt> >
getAntennaIDs(
const vector<String>& antennaNames)
const;
142 std::map<String, uInt>& namesToIDsMap,
143 const vector<uInt>& antennaIDs=vector<uInt>(0)
147 std::map<
String, std::set<uInt> >& namesToIDsMap,
148 const vector<uInt>& antennaIDs=vector<uInt>(0)
232 SHARED_PTR<const Quantum<Vector<Double> > >
getSourceTimes()
const;
247 Int scanNumber,
Int fieldID
302 std::map<SourceKey, SHARED_PTR<vector<String> > >
getTransitions()
const;
375 const vector<uInt>& which=std::vector<uInt>(0)
419 const std::set<Int>& scans,
Int obsID,
Int arrayID
600 vector<uInt>
nChans()
const;
635 Bool interpolate=
false,
Int initialguess=0
675 std::map<uInt, std::set<Double> >
times;
753 mutable SHARED_PTR<Vector<Double> >
_times;
825 SHARED_PTR<std::map<ScanKey, MSMetaData::ScanProperties> >& scanProps,
826 SHARED_PTR<std::map<SubScanKey, MSMetaData::SubScanProperties> >& subScanProps,
832 const std::map<SubScanKey, SubScanProperties>& subScanProps
836 Record& parent,
uInt& scanNRows, std::set<Int>& antennasForScan,
837 const ScanKey&
scanKey,
const std::map<SubScanKey, SubScanProperties>& subScanProps
859 SHARED_PTR<const map<SubScanKey, SubScanProperties> >
863 std::map<
String, std::set<uInt> >& namesToIDsMap
878 pair<std::map<ScanKey, ScanProperties>, std::map<SubScanKey, SubScanProperties> >
902 vector<std::set<String> >& fieldToIntentsMap,
903 std::map<
String, std::set<Int> >& intentToFieldsMap
907 vector<std::set<ScanKey> >& fieldToScansMap,
908 std::map<
ScanKey, std::set<Int> >& scanToFieldsMap
912 std::map<
Int, std::set<uInt> >& fieldToSpwMap,
913 vector<std::set<Int> >& spwToFieldMap
917 std::map<
Int, std::set<Int> >& fieldToStatesMap,
918 std::map<
Int, std::set<Int> >& stateToFieldsMap
922 SHARED_PTR<std::map<
Int, std::set<Double> > >& fieldToTimesMap,
926 SHARED_PTR<ArrayColumn<Bool> >
_getFlags()
const;
934 SHARED_PTR<Vector<Int> >
_getScans()
const;
940 SHARED_PTR<Vector<Double> >
_getTimes()
const;
969 std::map<SubScanKey, uInt>*& subScanToNACRowsMap,
970 std::map<SubScanKey, uInt>*& subScanToNXCRowsMap,
971 std::map<Int, uInt>*& fieldToNACRowsMap,
972 std::map<Int, uInt>*& fieldToNXCRowsMap
977 SHARED_PTR<std::map<SubScanKey, uInt> >& scanToNACRowsMap,
978 SHARED_PTR<std::map<SubScanKey, uInt> >& scanToNXCRowsMap,
979 SHARED_PTR<std::map<Int, uInt> >& fieldToNACRowsMap,
980 SHARED_PTR<std::map<Int, uInt> >& fieldToNXCRowsMap
997 std::map<
ScanKey, std::set<uInt> >& scanToDDIDMap,
998 vector<std::set<ScanKey> >& ddIDToScanMap
1002 std::map<
ScanKey, std::set<String> >& scanToIntentsMap,
1003 std::map<
String, std::set<ScanKey> >& intentToScansMap
1007 std::map<
ScanKey, std::set<uInt> >& scanToSpwMap,
1008 vector<std::set<ScanKey> >& spwToScanMap
1020 std::set<uInt>& avgSpw, std::set<uInt>& tdmSpw,
1021 std::set<uInt>& fdmSpw, std::set<uInt>& wvrSpw,
1022 std::set<uInt>& sqldSpw
1026 vector<std::set<String> >& spwToIntentsMap,
1027 std::map<
String, std::set<uInt> >& intentToSpwsMap
1031 std::set<uInt>& avgSpw, std::set<uInt>& tdmSpw, std::set<uInt>& fdmSpw,
1032 std::set<uInt>& wvrSpw, std::set<uInt>& sqldSpw
1036 vector<std::set<String> >& statesToIntentsMap,
1037 std::set<String>& uniqueIntents
1044 std::map<
String, std::set<SubScanKey> >& intentToSubScansMap
1048 SHARED_PTR<
const std::map<ScanKey, ScanProperties> >& scanProps,
1049 SHARED_PTR<
const std::map<SubScanKey, SubScanProperties> >& subScanProps,
1060 SHARED_PTR<std::map<SubScanKey, Double> >& subScanToNACRowsMap,
1061 SHARED_PTR<std::map<SubScanKey, Double> >& subScanToNXCRowsMap,
1062 SHARED_PTR<vector<Double> >& fieldToNACRowsMap,
1063 SHARED_PTR<vector<Double> >& fieldToNXCRowsMap
1068 vector<Double>*& fieldNACRows, vector<Double>*& fieldNXCRows,
1069 std::map<SubScanKey, Double>*& scanNACRows,
1070 std::map<SubScanKey, Double>*& scanNXCRows
1074 FirstExposureTimeMap& current,
const FirstExposureTimeMap& test
1078 FirstExposureTimeMap& current,
Int dataDescID,
1082 static uInt _sizeof(
const std::map<Double, MSMetaData::TimeStampProperties> & m);
1085 static uInt _sizeof(
const std::map<T, std::set<String> >& m);
1087 template <
class T,
class U>
1088 static uInt _sizeof(
const std::map<T, std::set<U> >& m);
1090 template <
class T,
class U>
1093 static uInt _sizeof(
const vector<std::set<String> >& m);
1097 static uInt _sizeof(
const vector<vector<String> >& m);
1105 static uInt _sizeof(
const vector<std::set<T> >& v);
1107 template <
class T>
static uInt _sizeof(
const std::map<
String, std::set<T> >& map);
1109 static uInt _sizeof(
const vector<std::map<Int, Quantity> >& map);
1111 static uInt _sizeof(
const std::map<std::pair<Int, uInt>, std::set<uInt> >& map);
A Measure: astronomical direction.
A Measure: position on Earth.
TableExprNode time(const TableExprNode &node)
Quantum< Double > Quantity
PredefinedColumns
The Main table colums with predefined meaning.
A Measure: instant in time.
A Measure: wave characteristics.
std::set< ScanKey > scanKeys(const std::set< Int > &scans, const ArrayKey &arrayKey)
construct scan keys given a set of scan numbers and an ArrayKey
A class to provide easy read-only access to MSPointing columns.
An ArrayKey is a unique combination of observation ID and array ID Negative values are allowed to ind...
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
Quantities (i.e. dimensioned values)
A sub scan is a unique combination of observation ID, array ID, scan number, and field ID...
A Table intended to hold astronomical data (a set of Measurements).
A scan is a unique combination of observation ID, array ID, and scan number Negative values are allow...
String: the storage and methods of handling collections of characters.
ScanKey scanKey(const SubScanKey &subScanKey)
create a ScanKey from a SubScanKey, just omits the SubScanKey's fieldID
this file contains all the compiler specific defines