MSReader.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef MS_MSREADER_H
00030 #define MS_MSREADER_H
00031
00032 #include <casacore/casa/aips.h>
00033 #include <casacore/casa/Arrays/Vector.h>
00034 #include <casacore/casa/Containers/Block.h>
00035 #include <casacore/casa/Containers/Record.h>
00036 #include <casacore/casa/Containers/SimOrdMap.h>
00037 #include <casacore/ms/MeasurementSets/MeasurementSet.h>
00038 #include <casacore/ms/MeasurementSets/MSColumns.h>
00039 #include <casacore/ms/MSSel/MSDopplerIndex.h>
00040 #include <casacore/ms/MSSel/MSFeedIndex.h>
00041 #include <casacore/ms/MSSel/MSFreqOffIndex.h>
00042 #include <casacore/ms/MSSel/MSPointingIndex.h>
00043 #include <casacore/ms/MSSel/MSSourceIndex.h>
00044 #include <casacore/ms/MSSel/MSSysCalIndex.h>
00045 #include <casacore/ms/MSSel/MSTableIndex.h>
00046 #include <casacore/ms/MSSel/MSWeatherIndex.h>
00047 #include <casacore/ms/MSOper/MSValidIds.h>
00048 #include <casacore/tables/Tables/TableRow.h>
00049 #include <casacore/casa/Quanta/Unit.h>
00050 #include <casacore/casa/BasicSL/String.h>
00051
00052 namespace casacore {
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062 class MSReader
00063 {
00064 public:
00065
00066 MSReader(const MeasurementSet &ms);
00067
00068 ~MSReader() {;}
00069
00070
00071
00072
00073 void gotoRow(uInt which);
00074
00075 const Vector<String> &tables() const {return itsTableNames;}
00076
00077
00078
00079
00080 const RecordInterface &tableRow(const String &name) const;
00081
00082
00083
00084 Int rowNumber(const String &name) const;
00085
00086
00087 const MeasurementSet &ms() const {return itsMS;}
00088
00089
00090 const Table &table(const String &name) const;
00091
00092
00093 const Record &units(const String &) const { return emptyRecord;}
00094 private:
00095 MeasurementSet itsMS;
00096 ROMSColumns itsMSCols;
00097
00098
00099 Unit itsSecUnit;
00100
00101 MSValidIds itsIds;
00102
00103
00104 SimpleOrderedMap<String, Int> itsTabId;
00105
00106
00107 Block<MSTableIndex> itsIndexes;
00108
00109
00110 MSDopplerIndex itsDopplerIndex;
00111 MSFeedIndex itsFeed1Index;
00112 MSFeedIndex itsFeed2Index;
00113 MSFreqOffIndex itsFreqOffIndex;
00114 MSPointingIndex itsPointing1Index;
00115 MSPointingIndex itsPointing2Index;
00116 MSSourceIndex itsSourceIndex;
00117 MSSysCalIndex itsSyscal1Index;
00118 MSSysCalIndex itsSyscal2Index;
00119 MSWeatherIndex itsWeather1Index;
00120 MSWeatherIndex itsWeather2Index;
00121
00122
00123 Int itsMainId, itsAnt1Id, itsAnt2Id, itsDDId, itsDopplerId, itsFeed1Id, itsFeed2Id, itsFieldId,
00124 itsFlagCmdId, itsFreqOffsetId, itsObsId, itsPointing1Id, itsPointing2Id, itsPolId, itsProcId,
00125 itsSourceId, itsSpwId, itsStateId, itsSyscal1Id, itsSyscal2Id, itsWeather1Id, itsWeather2Id;
00126
00127 Block<ROTableRow> itsTabRows;
00128
00129
00130
00131 Block<Int> itsRowNumbers;
00132
00133
00134 Record emptyRecord;
00135
00136
00137 Table emptyTable;
00138
00139 Vector<String> itsTableNames;
00140
00141
00142 MSReader();
00143 MSReader(const MSReader &);
00144 MSReader& operator=(const MSReader &);
00145 };
00146
00147
00148 }
00149
00150 #endif
00151