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;
123 vector<uInt>
getAntennaIDs(
const vector<String>& antennaNames)
const;
127 std::map<String, uInt>& namesToIDsMap,
128 const vector<uInt>& antennaIDs=vector<uInt>(0)
221 Int scanNumber,
Int fieldID
276 std::map<SourceKey, SHARED_PTR<vector<String> > >
getTransitions()
const;
343 const vector<uInt>& which=std::vector<uInt>(0)
387 const std::set<Int>& scans,
Int obsID,
Int arrayID
568 vector<uInt>
nChans()
const;
603 Bool interpolate=
false,
Int initialguess=0
638 std::map<uInt, std::set<Double> >
times;
716 mutable SHARED_PTR<Vector<Double> >
_times;
787 SHARED_PTR<std::map<ScanKey, MSMetaData::ScanProperties> >& scanProps,
788 SHARED_PTR<std::map<SubScanKey, MSMetaData::SubScanProperties> >& subScanProps,
794 const std::map<SubScanKey, SubScanProperties>& subScanProps
798 Record& parent,
uInt& scanNRows, std::set<Int>& antennasForScan,
799 const ScanKey&
scanKey,
const std::map<SubScanKey, SubScanProperties>& subScanProps
821 SHARED_PTR<const map<SubScanKey, SubScanProperties> >
825 std::map<String, uInt>& namesToIDsMap
840 pair<std::map<ScanKey, ScanProperties>, std::map<SubScanKey, SubScanProperties> >
864 vector<std::set<String> >& fieldToIntentsMap,
865 std::map<
String, std::set<Int> >& intentToFieldsMap
869 vector<std::set<ScanKey> >& fieldToScansMap,
870 std::map<
ScanKey, std::set<Int> >& scanToFieldsMap
874 std::map<
Int, std::set<uInt> >& fieldToSpwMap,
875 vector<std::set<Int> >& spwToFieldMap
879 std::map<
Int, std::set<Int> >& fieldToStatesMap,
880 std::map<
Int, std::set<Int> >& stateToFieldsMap
884 SHARED_PTR<std::map<
Int, std::set<Double> > >& fieldToTimesMap,
888 SHARED_PTR<ArrayColumn<Bool> >
_getFlags()
const;
896 SHARED_PTR<Vector<Int> >
_getScans()
const;
902 SHARED_PTR<Vector<Double> >
_getTimes()
const;
931 std::map<SubScanKey, uInt>*& subScanToNACRowsMap,
932 std::map<SubScanKey, uInt>*& subScanToNXCRowsMap,
933 std::map<Int, uInt>*& fieldToNACRowsMap,
934 std::map<Int, uInt>*& fieldToNXCRowsMap
939 SHARED_PTR<std::map<SubScanKey, uInt> >& scanToNACRowsMap,
940 SHARED_PTR<std::map<SubScanKey, uInt> >& scanToNXCRowsMap,
941 SHARED_PTR<std::map<Int, uInt> >& fieldToNACRowsMap,
942 SHARED_PTR<std::map<Int, uInt> >& fieldToNXCRowsMap
959 std::map<
ScanKey, std::set<uInt> >& scanToDDIDMap,
960 vector<std::set<ScanKey> >& ddIDToScanMap
964 std::map<
ScanKey, std::set<String> >& scanToIntentsMap,
965 std::map<
String, std::set<ScanKey> >& intentToScansMap
969 std::map<
ScanKey, std::set<uInt> >& scanToSpwMap,
970 vector<std::set<ScanKey> >& spwToScanMap
982 std::set<uInt>& avgSpw, std::set<uInt>& tdmSpw,
983 std::set<uInt>& fdmSpw, std::set<uInt>& wvrSpw,
984 std::set<uInt>& sqldSpw
988 vector<std::set<String> >& spwToIntentsMap,
989 std::map<
String, std::set<uInt> >& intentToSpwsMap
993 std::set<uInt>& avgSpw, std::set<uInt>& tdmSpw, std::set<uInt>& fdmSpw,
994 std::set<uInt>& wvrSpw, std::set<uInt>& sqldSpw
998 vector<std::set<String> >& statesToIntentsMap,
999 std::set<String>& uniqueIntents
1006 std::map<
String, std::set<SubScanKey> >& intentToSubScansMap
1010 SHARED_PTR<
const std::map<ScanKey, ScanProperties> >& scanProps,
1011 SHARED_PTR<
const std::map<SubScanKey, SubScanProperties> >& subScanProps,
1022 SHARED_PTR<std::map<SubScanKey, Double> >& subScanToNACRowsMap,
1023 SHARED_PTR<std::map<SubScanKey, Double> >& subScanToNXCRowsMap,
1024 SHARED_PTR<vector<Double> >& fieldToNACRowsMap,
1025 SHARED_PTR<vector<Double> >& fieldToNXCRowsMap
1030 vector<Double>*& fieldNACRows, vector<Double>*& fieldNXCRows,
1031 std::map<SubScanKey, Double>*& scanNACRows,
1032 std::map<SubScanKey, Double>*& scanNXCRows
1036 FirstExposureTimeMap& current,
const FirstExposureTimeMap& test
1040 FirstExposureTimeMap& current,
Int dataDescID,
1044 static uInt _sizeof(
const std::map<Double, MSMetaData::TimeStampProperties> & m);
1047 static uInt _sizeof(
const std::map<T, std::set<String> >& m);
1049 template <
class T,
class U>
1050 static uInt _sizeof(
const std::map<T, std::set<U> >& m);
1052 template <
class T,
class U>
1055 static uInt _sizeof(
const vector<std::set<String> >& m);
1059 static uInt _sizeof(
const vector<vector<String> >& m);
1067 static uInt _sizeof(
const vector<std::set<T> >& v);
1069 template <
class T>
static uInt _sizeof(
const std::map<
String, std::set<T> >& map);
1071 static uInt _sizeof(
const vector<std::map<Int, Quantity> >& map);
1073 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