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>
38 #include <casacore/tables/Tables/TableProxy.h>
43 template <
class T>
class ArrayColumn;
140 vector<std::set<uInt> >
getAntennaIDs(
const vector<String>& antennaNames)
const;
148 std::map<String, uInt>& namesToIDsMap,
149 const vector<uInt>& antennaIDs=vector<uInt>(0)
153 std::map<
String, std::set<uInt> >& namesToIDsMap,
154 const vector<uInt>& antennaIDs=vector<uInt>(0)
256 Int scanNumber,
Int fieldID
384 const vector<uInt>& which=std::vector<uInt>(0)
431 const std::set<Int>& scans,
Int obsID,
Int arrayID
647 Bool interpolate=
false,
Int initialguess=0
687 std::map<uInt, std::set<Double> >
times;
835 std::shared_ptr<std::map<ScanKey, MSMetaData::ScanProperties> >& scanProps,
836 std::shared_ptr<std::map<SubScanKey, MSMetaData::SubScanProperties> >& subScanProps,
856 std::shared_ptr<std::map<ScanKey, MSMetaData::ScanProperties> >& scanProps,
857 std::shared_ptr<std::map<SubScanKey, MSMetaData::SubScanProperties> >& subScanProps,
859 std::pair<std::map<ScanKey, ScanProperties>, std::map<SubScanKey, SubScanProperties> >
865 const std::map<SubScanKey, SubScanProperties>& subScanProps
869 Record& parent,
rownr_t& scanNRows, std::set<Int>& antennasForScan,
870 const ScanKey&
scanKey,
const std::map<SubScanKey, SubScanProperties>& subScanProps
892 std::shared_ptr<const std::map<SubScanKey, SubScanProperties> >
896 std::map<
String, std::set<uInt> >& namesToIDsMap
911 std::pair<std::map<ScanKey, ScanProperties>, std::map<SubScanKey, SubScanProperties> >
935 vector<std::set<String> >& fieldToIntentsMap,
936 std::map<
String, std::set<Int> >& intentToFieldsMap
940 vector<std::set<ScanKey> >& fieldToScansMap,
941 std::map<
ScanKey, std::set<Int> >& scanToFieldsMap
945 std::map<
Int, std::set<uInt> >& fieldToSpwMap,
946 vector<std::set<Int> >& spwToFieldMap
950 std::map<
Int, std::set<Int> >& fieldToStatesMap,
951 std::map<
Int, std::set<Int> >& stateToFieldsMap
955 std::shared_ptr<std::map<
Int, std::set<Double> > >& fieldToTimesMap,
956 std::shared_ptr<std::map<
Double, std::set<Int> > >& timesToFieldMap
1002 std::map<SubScanKey, rownr_t>*& subScanToNACRowsMap,
1003 std::map<SubScanKey, rownr_t>*& subScanToNXCRowsMap,
1004 std::map<Int, rownr_t>*& fieldToNACRowsMap,
1005 std::map<Int, rownr_t>*& fieldToNXCRowsMap
1010 std::shared_ptr<std::map<SubScanKey, rownr_t> >& scanToNACRowsMap,
1011 std::shared_ptr<std::map<SubScanKey, rownr_t> >& scanToNXCRowsMap,
1012 std::shared_ptr<std::map<Int, rownr_t> >& fieldToNACRowsMap,
1013 std::shared_ptr<std::map<Int, rownr_t> >& fieldToNXCRowsMap
1030 std::map<
ScanKey, std::set<uInt> >& scanToDDIDMap,
1031 vector<std::set<ScanKey> >& ddIDToScanMap
1035 std::map<
ScanKey, std::set<String> >& scanToIntentsMap,
1036 std::map<
String, std::set<ScanKey> >& intentToScansMap
1040 std::map<
ScanKey, std::set<uInt> >& scanToSpwMap,
1041 vector<std::set<ScanKey> >& spwToScanMap
1053 std::set<uInt>& avgSpw, std::set<uInt>& tdmSpw,
1054 std::set<uInt>& fdmSpw, std::set<uInt>& wvrSpw,
1055 std::set<uInt>& sqldSpw
1059 vector<std::set<String> >& spwToIntentsMap,
1060 std::map<
String, std::set<uInt> >& intentToSpwsMap
1064 std::set<uInt>& avgSpw, std::set<uInt>& tdmSpw, std::set<uInt>& fdmSpw,
1065 std::set<uInt>& wvrSpw, std::set<uInt>& sqldSpw
1069 vector<std::set<String> >& statesToIntentsMap,
1070 std::set<String>& uniqueIntents
1076 std::shared_ptr<
const std::map<
SubScanKey, std::set<String> > >& subScanToIntentsMap,
1077 std::map<
String, std::set<SubScanKey> >& intentToSubScansMap
1081 std::shared_ptr<
const std::map<ScanKey, ScanProperties> >& scanProps,
1082 std::shared_ptr<
const std::map<SubScanKey, SubScanProperties> >& subScanProps,
1093 std::shared_ptr<std::map<SubScanKey, Double> >& subScanToNACRowsMap,
1094 std::shared_ptr<std::map<SubScanKey, Double> >& subScanToNXCRowsMap,
1095 std::shared_ptr<vector<Double> >& fieldToNACRowsMap,
1096 std::shared_ptr<vector<Double> >& fieldToNXCRowsMap
1101 vector<Double>*& fieldNACRows, vector<Double>*& fieldNXCRows,
1102 std::map<SubScanKey, Double>*& scanNACRows,
1103 std::map<SubScanKey, Double>*& scanNXCRows
1115 static uInt _sizeof(
const std::map<Double, MSMetaData::TimeStampProperties> & m);
1120 template <
class T,
class U>
1123 template <
class T,
class U>
1144 static uInt _sizeof(
const std::map<std::pair<Int, uInt>, std::set<uInt> >& map);
PredefinedColumns
The Main table colums with predefined meaning.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
std::set< ScanKey > scanKeys(const std::set< Int > &scans, const ArrayKey &arrayKey)
construct scan keys given a set of scan numbers and an ArrayKey
TableExprNode time(const TableExprNode &node)
ScanKey scanKey(const SubScanKey &subScanKey)
create a ScanKey from a SubScanKey, just omits the SubScanKey's fieldID
bool Bool
Define the standard types used by Casacore.
Quantum< Double > Quantity
uInt64 rownr_t
Define the type of a row number in a table.
An ArrayKey is a unique combination of observation ID and array ID Negative values are allowed to ind...
A scan is a unique combination of observation ID, array ID, and scan number Negative values are allow...
A sub scan is a unique combination of observation ID, array ID, scan number, and field ID.