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;
867 std::shared_ptr<std::map<ScanKey, MSMetaData::ScanProperties> >& scanProps,
868 std::shared_ptr<std::map<SubScanKey, MSMetaData::SubScanProperties> >& subScanProps,
888 std::shared_ptr<std::map<ScanKey, MSMetaData::ScanProperties> >& scanProps,
889 std::shared_ptr<std::map<SubScanKey, MSMetaData::SubScanProperties> >& subScanProps,
891 std::pair<std::map<ScanKey, ScanProperties>, std::map<SubScanKey, SubScanProperties> >
897 const std::map<SubScanKey, SubScanProperties>& subScanProps
901 Record& parent,
rownr_t& scanNRows, std::set<Int>& antennasForScan,
902 const ScanKey&
scanKey,
const std::map<SubScanKey, SubScanProperties>& subScanProps
924 std::shared_ptr<const std::map<SubScanKey, SubScanProperties> >
928 std::map<
String, std::set<uInt> >& namesToIDsMap
943 std::pair<std::map<ScanKey, ScanProperties>, std::map<SubScanKey, SubScanProperties> >
967 vector<std::set<String> >& fieldToIntentsMap,
968 std::map<
String, std::set<Int> >& intentToFieldsMap
972 vector<std::set<ScanKey> >& fieldToScansMap,
973 std::map<
ScanKey, std::set<Int> >& scanToFieldsMap
977 std::map<
Int, std::set<uInt> >& fieldToSpwMap,
978 vector<std::set<Int> >& spwToFieldMap
982 std::map<
Int, std::set<Int> >& fieldToStatesMap,
983 std::map<
Int, std::set<Int> >& stateToFieldsMap
987 std::shared_ptr<std::map<
Int, std::set<Double> > >& fieldToTimesMap,
988 std::shared_ptr<std::map<
Double, std::set<Int> > >& timesToFieldMap
1034 std::map<SubScanKey, rownr_t>*& subScanToNACRowsMap,
1035 std::map<SubScanKey, rownr_t>*& subScanToNXCRowsMap,
1036 std::map<Int, rownr_t>*& fieldToNACRowsMap,
1037 std::map<Int, rownr_t>*& fieldToNXCRowsMap
1042 std::shared_ptr<std::map<SubScanKey, rownr_t> >& scanToNACRowsMap,
1043 std::shared_ptr<std::map<SubScanKey, rownr_t> >& scanToNXCRowsMap,
1044 std::shared_ptr<std::map<Int, rownr_t> >& fieldToNACRowsMap,
1045 std::shared_ptr<std::map<Int, rownr_t> >& fieldToNXCRowsMap
1062 std::map<
ScanKey, std::set<uInt> >& scanToDDIDMap,
1063 vector<std::set<ScanKey> >& ddIDToScanMap
1067 std::map<
ScanKey, std::set<String> >& scanToIntentsMap,
1068 std::map<
String, std::set<ScanKey> >& intentToScansMap
1072 std::map<
ScanKey, std::set<uInt> >& scanToSpwMap,
1073 vector<std::set<ScanKey> >& spwToScanMap
1085 std::set<uInt>& avgSpw, std::set<uInt>& tdmSpw,
1086 std::set<uInt>& fdmSpw, std::set<uInt>& wvrSpw,
1087 std::set<uInt>& sqldSpw
1091 vector<std::set<String> >& spwToIntentsMap,
1092 std::map<
String, std::set<uInt> >& intentToSpwsMap
1096 std::set<uInt>& avgSpw, std::set<uInt>& tdmSpw, std::set<uInt>& fdmSpw,
1097 std::set<uInt>& wvrSpw, std::set<uInt>& sqldSpw
1101 vector<std::set<String> >& statesToIntentsMap,
1102 std::set<String>& uniqueIntents
1108 std::shared_ptr<
const std::map<
SubScanKey, std::set<String> > >& subScanToIntentsMap,
1109 std::map<
String, std::set<SubScanKey> >& intentToSubScansMap
1113 std::shared_ptr<
const std::map<ScanKey, ScanProperties> >& scanProps,
1114 std::shared_ptr<
const std::map<SubScanKey, SubScanProperties> >& subScanProps,
1125 std::shared_ptr<std::map<SubScanKey, Double> >& subScanToNACRowsMap,
1126 std::shared_ptr<std::map<SubScanKey, Double> >& subScanToNXCRowsMap,
1127 std::shared_ptr<vector<Double> >& fieldToNACRowsMap,
1128 std::shared_ptr<vector<Double> >& fieldToNXCRowsMap
1133 vector<Double>*& fieldNACRows, vector<Double>*& fieldNXCRows,
1134 std::map<SubScanKey, Double>*& scanNACRows,
1135 std::map<SubScanKey, Double>*& scanNXCRows
1147 static uInt _sizeof(
const std::map<Double, MSMetaData::TimeStampProperties> & m);
1152 template <
class T,
class U>
1155 template <
class T,
class U>
1176 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.