26#ifndef MS_MSMETADATA_H
27#define MS_MSMETADATA_H
29#include <casacore/casa/aips.h>
30#include <casacore/casa/Quanta/QVector.h>
31#include <casacore/measures/Measures/MFrequency.h>
32#include <casacore/measures/Measures/MPosition.h>
33#include <casacore/ms/MeasurementSets/MeasurementSet.h>
34#include <casacore/ms/MeasurementSets/MSPointingColumns.h>
35#include <casacore/tables/Tables/TableProxy.h>
41template <
class T>
class ArrayColumn;
138 vector<std::set<uInt> >
getAntennaIDs(
const vector<String>& antennaNames)
const;
146 std::map<String, uInt>& namesToIDsMap,
147 const vector<uInt>& antennaIDs=vector<uInt>(0)
151 std::map<
String, std::set<uInt> >& namesToIDsMap,
152 const vector<uInt>& antennaIDs=vector<uInt>(0)
254 Int scanNumber,
Int fieldID
382 const vector<uInt>& which=std::vector<uInt>(0)
429 const std::set<Int>& scans,
Int obsID,
Int arrayID
645 Bool interpolate=
false,
Int initialguess=0
716 std::map<uInt, std::set<double> >
times;
868 std::shared_ptr<std::map<ScanKey, MSMetaData::ScanProperties> >& scanProps,
869 std::shared_ptr<std::map<SubScanKey, MSMetaData::SubScanProperties> >& subScanProps,
889 std::shared_ptr<std::map<ScanKey, MSMetaData::ScanProperties> >& scanProps,
890 std::shared_ptr<std::map<SubScanKey, MSMetaData::SubScanProperties> >& subScanProps,
892 std::pair<std::map<ScanKey, ScanProperties>, std::map<SubScanKey, SubScanProperties> >
898 const std::map<SubScanKey, SubScanProperties>& subScanProps
902 Record& parent,
rownr_t& scanNRows, std::set<Int>& antennasForScan,
903 const ScanKey&
scanKey,
const std::map<SubScanKey, SubScanProperties>& subScanProps
925 std::shared_ptr<const std::map<SubScanKey, SubScanProperties> >
929 std::map<
String, std::set<uInt> >& namesToIDsMap
944 std::pair<std::map<ScanKey, ScanProperties>, std::map<SubScanKey, SubScanProperties> >
968 vector<std::set<String> >& fieldToIntentsMap,
969 std::map<
String, std::set<Int> >& intentToFieldsMap
973 vector<std::set<ScanKey> >& fieldToScansMap,
974 std::map<
ScanKey, std::set<Int> >& scanToFieldsMap
978 std::map<
Int, std::set<uInt> >& fieldToSpwMap,
979 vector<std::set<Int> >& spwToFieldMap
983 std::map<
Int, std::set<Int> >& fieldToStatesMap,
984 std::map<
Int, std::set<Int> >& stateToFieldsMap
988 std::shared_ptr<std::map<
Int, std::set<Double> > >& fieldToTimesMap,
989 std::shared_ptr<std::map<
Double, std::set<Int> > >& timesToFieldMap
1039 std::map<SubScanKey, rownr_t>*& subScanToNACRowsMap,
1040 std::map<SubScanKey, rownr_t>*& subScanToNXCRowsMap,
1041 std::map<Int, rownr_t>*& fieldToNACRowsMap,
1042 std::map<Int, rownr_t>*& fieldToNXCRowsMap
1047 std::shared_ptr<std::map<SubScanKey, rownr_t> >& scanToNACRowsMap,
1048 std::shared_ptr<std::map<SubScanKey, rownr_t> >& scanToNXCRowsMap,
1049 std::shared_ptr<std::map<Int, rownr_t> >& fieldToNACRowsMap,
1050 std::shared_ptr<std::map<Int, rownr_t> >& fieldToNXCRowsMap
1067 std::map<
ScanKey, std::set<uInt> >& scanToDDIDMap,
1068 vector<std::set<ScanKey> >& ddIDToScanMap
1072 std::map<
ScanKey, std::set<String> >& scanToIntentsMap,
1073 std::map<
String, std::set<ScanKey> >& intentToScansMap
1077 std::map<
ScanKey, std::set<uInt> >& scanToSpwMap,
1078 vector<std::set<ScanKey> >& spwToScanMap
1090 std::set<uInt>& avgSpw, std::set<uInt>& tdmSpw,
1091 std::set<uInt>& fdmSpw, std::set<uInt>& wvrSpw,
1092 std::set<uInt>& sqldSpw
1096 vector<std::set<String> >& spwToIntentsMap,
1097 std::map<
String, std::set<uInt> >& intentToSpwsMap
1101 std::set<uInt>& avgSpw, std::set<uInt>& tdmSpw, std::set<uInt>& fdmSpw,
1102 std::set<uInt>& wvrSpw, std::set<uInt>& sqldSpw
1106 vector<std::set<String> >& statesToIntentsMap,
1107 std::set<String>& uniqueIntents
1113 std::shared_ptr<
const std::map<
SubScanKey, std::set<String> > >& subScanToIntentsMap,
1114 std::map<
String, std::set<SubScanKey> >& intentToSubScansMap
1118 std::shared_ptr<
const std::map<ScanKey, ScanProperties> >& scanProps,
1119 std::shared_ptr<
const std::map<SubScanKey, SubScanProperties> >& subScanProps,
1130 std::shared_ptr<std::map<SubScanKey, Double> >& subScanToNACRowsMap,
1131 std::shared_ptr<std::map<SubScanKey, Double> >& subScanToNXCRowsMap,
1132 std::shared_ptr<vector<Double> >& fieldToNACRowsMap,
1133 std::shared_ptr<vector<Double> >& fieldToNXCRowsMap
1138 vector<Double>*& fieldNACRows, vector<Double>*& fieldNXCRows,
1139 std::map<SubScanKey, Double>*& scanNACRows,
1140 std::map<SubScanKey, Double>*& scanNXCRows
1152 static uInt _sizeof(
const std::map<Double, MSMetaData::TimeStampProperties> & m);
1157 template <
class T,
class U>
1160 template <
class T,
class U>
1181 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
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.
std::set< ScanKey > scanKeys(const std::set< Int > &scans, const ArrayKey &arrayKey)
construct scan keys given a set of scan numbers and an ArrayKey
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.