28 #ifndef MS_MSSPWINDOWCOLUMNS_H
29 #define MS_MSSPWINDOWCOLUMNS_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/measures/Measures/MFrequency.h>
33 #include <casacore/measures/Measures/MCFrequency.h>
34 #include <casacore/tables/Tables/ScalarColumn.h>
35 #include <casacore/tables/Tables/ArrayColumn.h>
36 #include <casacore/measures/TableMeasures/ScalarMeasColumn.h>
37 #include <casacore/measures/TableMeasures/ScalarQuantColumn.h>
38 #include <casacore/measures/TableMeasures/ArrayMeasColumn.h>
39 #include <casacore/measures/TableMeasures/ArrayQuantColumn.h>
40 #include <casacore/casa/BasicSL/String.h>
41 #include <casacore/measures/Measures/MeasFrame.h>
42 #include <casacore/ms/MeasurementSets/MSDopplerColumns.h>
43 #include <casacore/ms/MeasurementSets/MSSourceColumns.h>
47 class MSSpectralWindow;
212 Bool& reversed)
const;
Types
Types of known MFrequencies Warning: The order defines the order in the translation matrix FromTo in...
const ArrayColumn< String > & assocNature() const
Const access to optional columns.
ScalarColumn< Int > bbcSideband_p
ArrayQuantColumn< Double > & chanWidthQuant()
ScalarColumn< Bool > & flagRow()
ScalarQuantColumn< Double > & totalBandwidthQuant()
const ArrayColumn< Double > & resolution() const
const ScalarColumn< Int > & netSideband() const
void attachOptionalCols(const MSSpectralWindow &msSpWindow)
ArrayQuantColumn< Double > chanFreqQuant_p
ScalarColumn< Int > netSideband_p
ScalarColumn< Int > & ifConvChain()
ArrayColumn< Double > & effectiveBW()
ScalarQuantColumn< Double > totalBandwidthQuant_p
ArrayQuantColumn< Double > chanWidthQuant_p
RowNumbers allMatchedSpw(const MFrequency &refFreq, uInt nChan, const Quantum< Double > &bandwidth, Int ifChain, const Quantum< Double > &tolerance) const
This is to check that the channels are matched individually and also if the spw is matched in reverse...
ScalarColumn< Int > & receiverId()
ArrayColumn< Double > chanFreq_p
const ArrayQuantColumn< Double > & chanFreqQuant() const
ScalarColumn< Double > & refFrequency()
ScalarColumn< Int > bbcNo_p
const ScalarColumn< String > & freqGroupName() const
const ScalarColumn< Int > & ifConvChain() const
ArrayQuantColumn< Double > resolutionQuant_p
Bool matchRefFreqCnvtrd(rownr_t row, MFrequency refOrChanFreq, const Bool isRefFreq, const MeasFrame &measFrm, const MSDopplerColumns &msdopc, const MSSourceColumns &mssrcc, Double tolInHz) const
Int64 matchSpw(const MFrequency &refFreq, const MFrequency &chanFreq1, const MeasFrame &measFrm, const MSDopplerColumns &msdopc, const MSSourceColumns &mssrcc, uInt nChan, const Quantum< Double > &bandwidth, Int ifChain, const Quantum< Double > &tolerance, Int64 tryRow=-1) const
Similar to above, but also pass in the frame info.
ScalarColumn< String > & name()
ScalarColumn< String > freqGroupName_p
ScalarColumn< Int > & dopplerId()
const ArrayQuantColumn< Double > & chanWidthQuant() const
ScalarColumn< String > name_p
ArrayColumn< Double > & chanWidth()
ScalarColumn< Int > receiverId_p
const ScalarColumn< Int > & numChan() const
ScalarColumn< Int > & bbcSideband()
ScalarColumn< Int > measFreqRef_p
const ScalarColumn< Int > & freqGroup() const
const ArrayColumn< Double > & chanWidth() const
MSSpWindowColumns(const MSSpWindowColumns &)
ScalarColumn< Int > numChan_p
ArrayQuantColumn< Double > & resolutionQuant()
const ArrayQuantColumn< Double > & effectiveBWQuant() const
const ArrayColumn< Double > & effectiveBW() const
Bool matchTotalBandwidth(rownr_t row, Double bandwidthInHz, Double tolInHz) const
ScalarMeasColumn< MFrequency > & refFrequencyMeas()
const ScalarColumn< Int > & receiverId() const
ArrayColumn< String > & assocNature()
Access to optional columns.
ArrayColumn< Double > resolution_p
ArrayQuantColumn< Double > & effectiveBWQuant()
MSSpWindowColumns(const MSSpectralWindow &msSpWindow)
Create a columns object that accesses the data in the specified Table.
Bool matchNumChan(rownr_t row, Int nChan) const
ScalarColumn< Int > & measFreqRef()
Int64 matchSpw(const MFrequency &refFreq, uInt nChan, const Quantum< Double > &bandwidth, Int ifChain, const Quantum< Double > &tolerance, Int64 tryRow=-1) const
returns the last row that contains a spectral window that has the specified reference frequency,...
ScalarQuantColumn< Double > refFrequencyQuant_p
ArrayMeasColumn< MFrequency > & chanFreqMeas()
const ScalarColumn< Int > & measFreqRef() const
rownr_t nrow() const
Convenience function that returns the number of rows in any of the columns.
ScalarMeasColumn< MFrequency > refFrequencyMeas_p
const ScalarMeasColumn< MFrequency > & refFrequencyMeas() const
const ArrayColumn< Double > & chanFreq() const
Const access to columns.
const ArrayMeasColumn< MFrequency > & chanFreqMeas() const
const ScalarColumn< Double > & totalBandwidth() const
ScalarColumn< String > & freqGroupName()
ArrayColumn< Double > & chanFreq()
Access to required columns.
const ScalarColumn< Int > & bbcNo() const
ArrayColumn< Int > assocSpwId_p
ScalarColumn< Int > & numChan()
ScalarColumn< Double > refFrequency_p
~MSSpWindowColumns()
The destructor does nothing special.
const ScalarQuantColumn< Double > & refFrequencyQuant() const
ScalarColumn< Int > freqGroup_p
ScalarColumn< Int > & netSideband()
Bool matchRefFrequency(rownr_t row, MFrequency::Types refType, Double refFreqInHz, Double tolInHz) const
const ScalarColumn< Int > & dopplerId() const
Int64 matchSpw(const MFrequency &refFreq, uInt nChan, const Quantum< Double > &bandwidth, Int ifChain, const Quantum< Double > &tolerance, Vector< Double > &otherFreqs, Bool &reversed) const
This version does a channel to channel match too and also return the reversed if it matches but the c...
ScalarColumn< Double > & totalBandwidth()
ArrayColumn< Double > chanWidth_p
ScalarColumn< Bool > flagRow_p
ScalarColumn< Int > dopplerId_p
ArrayColumn< String > assocNature_p
ArrayMeasColumn< MFrequency > chanFreqMeas_p
const ScalarColumn< String > & name() const
ScalarColumn< Int > & freqGroup()
ScalarColumn< Double > totalBandwidth_p
const ArrayQuantColumn< Double > & resolutionQuant() const
const ScalarColumn< Bool > & flagRow() const
Bool matchIfConvChain(rownr_t row, Int ifChain) const
const ScalarColumn< Int > & bbcSideband() const
MSSpWindowColumns & operator=(const MSSpWindowColumns &)
ArrayQuantColumn< Double > effectiveBWQuant_p
ArrayColumn< Int > & assocSpwId()
const ArrayColumn< Int > & assocSpwId() const
ArrayQuantColumn< Double > & chanFreqQuant()
void attach(const MSSpectralWindow &msSpWindow)
const ScalarQuantColumn< Double > & totalBandwidthQuant() const
ArrayColumn< Double > effectiveBW_p
Bool matchChanFreq(rownr_t row, const Vector< Double > &chanFreqInHz, Double tolInHz) const
const ScalarColumn< Double > & refFrequency() const
ArrayColumn< Double > & resolution()
ScalarColumn< Int > ifConvChain_p
ScalarQuantColumn< Double > & refFrequencyQuant()
ScalarColumn< Int > & bbcNo()
rownr_t nrow() const
Get the number of rows in the column.
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
bool Bool
Define the standard types used by Casacore.
MSSpWindowColumns ROMSSpWindowColumns
uInt64 rownr_t
Define the type of a row number in a table.