casacore
|
#include <MSSpWindowColumns.h>
Public Member Functions | |
MSSpWindowColumns (const MSSpectralWindow &msSpWindow) | |
Create a columns object that accesses the data in the specified Table. More... | |
~MSSpWindowColumns () | |
The destructor does nothing special. More... | |
ArrayColumn< Double > & | chanFreq () |
Access to required columns. More... | |
ArrayMeasColumn< MFrequency > & | chanFreqMeas () |
ArrayQuantColumn< Double > & | chanFreqQuant () |
ArrayColumn< Double > & | chanWidth () |
ArrayQuantColumn< Double > & | chanWidthQuant () |
ArrayColumn< Double > & | effectiveBW () |
ArrayQuantColumn< Double > & | effectiveBWQuant () |
ScalarColumn< Bool > & | flagRow () |
ScalarColumn< Int > & | freqGroup () |
ScalarColumn< String > & | freqGroupName () |
ScalarColumn< Int > & | ifConvChain () |
ScalarColumn< Int > & | measFreqRef () |
ScalarColumn< String > & | name () |
ScalarColumn< Int > & | netSideband () |
ScalarColumn< Int > & | numChan () |
ScalarColumn< Double > & | refFrequency () |
ScalarQuantColumn< Double > & | refFrequencyQuant () |
ScalarMeasColumn< MFrequency > & | refFrequencyMeas () |
ArrayColumn< Double > & | resolution () |
ArrayQuantColumn< Double > & | resolutionQuant () |
ScalarColumn< Double > & | totalBandwidth () |
ScalarQuantColumn< Double > & | totalBandwidthQuant () |
ArrayColumn< String > & | assocNature () |
Access to optional columns. More... | |
ArrayColumn< Int > & | assocSpwId () |
ScalarColumn< Int > & | bbcNo () |
ScalarColumn< Int > & | bbcSideband () |
ScalarColumn< Int > & | dopplerId () |
ScalarColumn< Int > & | receiverId () |
const ArrayColumn< Double > & | chanFreq () const |
Const access to columns. More... | |
const ArrayQuantColumn< Double > & | chanFreqQuant () const |
const ArrayMeasColumn< MFrequency > & | chanFreqMeas () const |
const ArrayColumn< Double > & | chanWidth () const |
const ArrayQuantColumn< Double > & | chanWidthQuant () const |
const ArrayColumn< Double > & | effectiveBW () const |
const ArrayQuantColumn< Double > & | effectiveBWQuant () const |
const ScalarColumn< Int > & | freqGroup () const |
const ScalarColumn< String > & | freqGroupName () const |
const ScalarColumn< Int > & | ifConvChain () const |
const ScalarColumn< Bool > & | flagRow () const |
const ScalarColumn< Int > & | measFreqRef () const |
const ScalarColumn< String > & | name () const |
const ScalarColumn< Int > & | netSideband () const |
const ScalarColumn< Int > & | numChan () const |
const ScalarColumn< Double > & | refFrequency () const |
const ScalarQuantColumn< Double > & | refFrequencyQuant () const |
const ScalarMeasColumn< MFrequency > & | refFrequencyMeas () const |
const ArrayColumn< Double > & | resolution () const |
const ArrayQuantColumn< Double > & | resolutionQuant () const |
const ScalarColumn< Double > & | totalBandwidth () const |
const ScalarQuantColumn< Double > & | totalBandwidthQuant () const |
const ArrayColumn< String > & | assocNature () const |
Const access to optional columns. More... | |
const ArrayColumn< Int > & | assocSpwId () const |
const ScalarColumn< Int > & | bbcNo () const |
const ScalarColumn< Int > & | bbcSideband () const |
const ScalarColumn< Int > & | dopplerId () const |
const ScalarColumn< Int > & | receiverId () const |
rownr_t | nrow () const |
Convenience function that returns the number of rows in any of the columns. More... | |
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, number of channels, total-bandwidth and IF conversion chain. More... | |
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. More... | |
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;. More... | |
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 channels are in inverse order like an upper or lower side band having same characteristics. More... | |
Protected Member Functions | |
MSSpWindowColumns () | |
void | attach (const MSSpectralWindow &msSpWindow) |
Private Member Functions | |
MSSpWindowColumns (const MSSpWindowColumns &) | |
MSSpWindowColumns & | operator= (const MSSpWindowColumns &) |
void | attachOptionalCols (const MSSpectralWindow &msSpWindow) |
Bool | matchRefFrequency (rownr_t row, MFrequency::Types refType, Double refFreqInHz, Double tolInHz) const |
Bool | matchRefFreqCnvtrd (rownr_t row, MFrequency refOrChanFreq, const Bool isRefFreq, const MeasFrame &measFrm, const MSDopplerColumns &msdopc, const MSSourceColumns &mssrcc, Double tolInHz) const |
Bool | matchChanFreq (rownr_t row, const Vector< Double > &chanFreqInHz, Double tolInHz) const |
Bool | matchIfConvChain (rownr_t row, Int ifChain) const |
Bool | matchTotalBandwidth (rownr_t row, Double bandwidthInHz, Double tolInHz) const |
Bool | matchNumChan (rownr_t row, Int nChan) const |
A class to provide easy access to MSSpectralWindow columns
Public interface
MSSpectralWindowColumns stands for MeasurementSet SpectralWindow Table columns.
This class provides access to the columns in the MSSpectralWindow Table, it does the declaration of all the Scalar and ArrayColumns with the correct types, so the application programmer doesn't have to worry about getting those right. There is an access function for every predefined column. Access to non-predefined columns will still have to be done with explicit declarations. See MSColumns for an example.
See MSColumns for the motivation.
Definition at line 82 of file MSSpWindowColumns.h.
casacore::MSSpWindowColumns::MSSpWindowColumns | ( | const MSSpectralWindow & | msSpWindow | ) |
Create a columns object that accesses the data in the specified Table.
casacore::MSSpWindowColumns::~MSSpWindowColumns | ( | ) |
The destructor does nothing special.
|
protected |
|
private |
RowNumbers casacore::MSSpWindowColumns::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;.
Same as the above but returns all the possible match that it could find in the spectral window table.
|
inline |
Access to optional columns.
Definition at line 120 of file MSSpWindowColumns.h.
References assocNature_p.
|
inline |
Const access to optional columns.
Definition at line 165 of file MSSpWindowColumns.h.
References assocNature_p.
|
inline |
Definition at line 121 of file MSSpWindowColumns.h.
References assocSpwId_p.
|
inline |
Definition at line 166 of file MSSpWindowColumns.h.
References assocSpwId_p.
|
protected |
|
private |
|
inline |
Definition at line 122 of file MSSpWindowColumns.h.
References bbcNo_p.
|
inline |
Definition at line 167 of file MSSpWindowColumns.h.
References bbcNo_p.
|
inline |
Definition at line 123 of file MSSpWindowColumns.h.
References bbcSideband_p.
|
inline |
Definition at line 168 of file MSSpWindowColumns.h.
References bbcSideband_p.
|
inline |
Access to required columns.
Definition at line 93 of file MSSpWindowColumns.h.
References chanFreq_p.
|
inline |
|
inline |
Definition at line 94 of file MSSpWindowColumns.h.
References chanFreqMeas_p.
|
inline |
Definition at line 133 of file MSSpWindowColumns.h.
References chanFreqMeas_p.
|
inline |
Definition at line 95 of file MSSpWindowColumns.h.
References chanFreqQuant_p.
|
inline |
Definition at line 131 of file MSSpWindowColumns.h.
References chanFreqQuant_p.
|
inline |
Definition at line 96 of file MSSpWindowColumns.h.
References chanWidth_p.
|
inline |
Definition at line 135 of file MSSpWindowColumns.h.
References chanWidth_p.
|
inline |
Definition at line 97 of file MSSpWindowColumns.h.
References chanWidthQuant_p.
|
inline |
Definition at line 136 of file MSSpWindowColumns.h.
References chanWidthQuant_p.
|
inline |
Definition at line 124 of file MSSpWindowColumns.h.
References dopplerId_p.
|
inline |
Definition at line 169 of file MSSpWindowColumns.h.
References dopplerId_p.
|
inline |
Definition at line 98 of file MSSpWindowColumns.h.
References effectiveBW_p.
|
inline |
Definition at line 138 of file MSSpWindowColumns.h.
References effectiveBW_p.
|
inline |
Definition at line 99 of file MSSpWindowColumns.h.
References effectiveBWQuant_p.
|
inline |
Definition at line 139 of file MSSpWindowColumns.h.
References effectiveBWQuant_p.
|
inline |
Definition at line 100 of file MSSpWindowColumns.h.
References flagRow_p.
|
inline |
Definition at line 144 of file MSSpWindowColumns.h.
References flagRow_p.
|
inline |
Definition at line 101 of file MSSpWindowColumns.h.
References freqGroup_p.
|
inline |
Definition at line 141 of file MSSpWindowColumns.h.
References freqGroup_p.
|
inline |
Definition at line 102 of file MSSpWindowColumns.h.
References freqGroupName_p.
|
inline |
Definition at line 142 of file MSSpWindowColumns.h.
References freqGroupName_p.
|
inline |
Definition at line 103 of file MSSpWindowColumns.h.
References ifConvChain_p.
|
inline |
Definition at line 143 of file MSSpWindowColumns.h.
References ifConvChain_p.
|
private |
|
private |
|
private |
Int64 casacore::MSSpWindowColumns::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.
Int64 casacore::MSSpWindowColumns::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, number of channels, total-bandwidth and IF conversion chain.
All frequencies need to match within the specified tolerance. Both the totalBandwidth & the tolerance arguments must have the same dimensions as the Hz and an AipsError exception is thrown, in debug mode, if the dimensions are wrong. In addition to the numerical values the frequency reference frame is checked and needs to match the value in the MEAS_FREQ_REF column. No conversions to other reference frames are done. Will only try to match on rows where FLAG_ROW is false. If tryRow is set to a non-negative value then that row is checked first to see if it matches. An AIpsError exception is thrown if tryRow is bigger than the number of rows in the Table. Returns -1 if no match could be found.
Int64 casacore::MSSpWindowColumns::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 channels are in inverse order like an upper or lower side band having same characteristics.
|
private |
|
inline |
Definition at line 104 of file MSSpWindowColumns.h.
References measFreqRef_p.
|
inline |
Definition at line 145 of file MSSpWindowColumns.h.
References measFreqRef_p.
|
inline |
Definition at line 105 of file MSSpWindowColumns.h.
References name_p.
|
inline |
Definition at line 146 of file MSSpWindowColumns.h.
References name_p.
|
inline |
Definition at line 106 of file MSSpWindowColumns.h.
References netSideband_p.
|
inline |
Definition at line 147 of file MSSpWindowColumns.h.
References netSideband_p.
|
inline |
Convenience function that returns the number of rows in any of the columns.
Definition at line 174 of file MSSpWindowColumns.h.
References chanFreq_p, and casacore::TableColumn::nrow().
|
inline |
Definition at line 107 of file MSSpWindowColumns.h.
References numChan_p.
|
inline |
Definition at line 148 of file MSSpWindowColumns.h.
References numChan_p.
|
private |
|
inline |
Definition at line 125 of file MSSpWindowColumns.h.
References receiverId_p.
|
inline |
Definition at line 170 of file MSSpWindowColumns.h.
References receiverId_p.
|
inline |
Definition at line 108 of file MSSpWindowColumns.h.
References refFrequency_p.
|
inline |
Definition at line 149 of file MSSpWindowColumns.h.
References refFrequency_p.
|
inline |
Definition at line 110 of file MSSpWindowColumns.h.
References refFrequencyMeas_p.
|
inline |
Definition at line 152 of file MSSpWindowColumns.h.
References refFrequencyMeas_p.
|
inline |
Definition at line 109 of file MSSpWindowColumns.h.
References refFrequencyQuant_p.
|
inline |
Definition at line 150 of file MSSpWindowColumns.h.
References refFrequencyQuant_p.
|
inline |
Definition at line 111 of file MSSpWindowColumns.h.
References resolution_p.
|
inline |
Definition at line 154 of file MSSpWindowColumns.h.
References resolution_p.
|
inline |
Definition at line 112 of file MSSpWindowColumns.h.
References resolutionQuant_p.
|
inline |
Definition at line 155 of file MSSpWindowColumns.h.
References resolutionQuant_p.
|
inline |
Definition at line 113 of file MSSpWindowColumns.h.
References totalBandwidth_p.
|
inline |
Definition at line 157 of file MSSpWindowColumns.h.
References totalBandwidth_p.
|
inline |
Definition at line 114 of file MSSpWindowColumns.h.
References totalBandwidthQuant_p.
|
inline |
Definition at line 159 of file MSSpWindowColumns.h.
References totalBandwidthQuant_p.
|
private |
Definition at line 264 of file MSSpWindowColumns.h.
Referenced by assocNature().
|
private |
Definition at line 265 of file MSSpWindowColumns.h.
Referenced by assocSpwId().
|
private |
Definition at line 266 of file MSSpWindowColumns.h.
Referenced by bbcNo().
|
private |
Definition at line 267 of file MSSpWindowColumns.h.
Referenced by bbcSideband().
|
private |
Definition at line 249 of file MSSpWindowColumns.h.
Referenced by chanFreq(), and nrow().
|
private |
Definition at line 272 of file MSSpWindowColumns.h.
Referenced by chanFreqMeas().
|
private |
Definition at line 276 of file MSSpWindowColumns.h.
Referenced by chanFreqQuant().
|
private |
Definition at line 250 of file MSSpWindowColumns.h.
Referenced by chanWidth().
|
private |
Definition at line 277 of file MSSpWindowColumns.h.
Referenced by chanWidthQuant().
|
private |
Definition at line 268 of file MSSpWindowColumns.h.
Referenced by dopplerId().
|
private |
Definition at line 251 of file MSSpWindowColumns.h.
Referenced by effectiveBW().
|
private |
Definition at line 278 of file MSSpWindowColumns.h.
Referenced by effectiveBWQuant().
|
private |
Definition at line 252 of file MSSpWindowColumns.h.
Referenced by flagRow().
|
private |
Definition at line 253 of file MSSpWindowColumns.h.
Referenced by freqGroup().
|
private |
Definition at line 254 of file MSSpWindowColumns.h.
Referenced by freqGroupName().
|
private |
Definition at line 255 of file MSSpWindowColumns.h.
Referenced by ifConvChain().
|
private |
Definition at line 256 of file MSSpWindowColumns.h.
Referenced by measFreqRef().
|
private |
Definition at line 257 of file MSSpWindowColumns.h.
Referenced by name().
|
private |
Definition at line 258 of file MSSpWindowColumns.h.
Referenced by netSideband().
|
private |
Definition at line 259 of file MSSpWindowColumns.h.
Referenced by numChan().
|
private |
Definition at line 269 of file MSSpWindowColumns.h.
Referenced by receiverId().
|
private |
Definition at line 260 of file MSSpWindowColumns.h.
Referenced by refFrequency().
|
private |
Definition at line 273 of file MSSpWindowColumns.h.
Referenced by refFrequencyMeas().
|
private |
Definition at line 279 of file MSSpWindowColumns.h.
Referenced by refFrequencyQuant().
|
private |
Definition at line 261 of file MSSpWindowColumns.h.
Referenced by resolution().
|
private |
Definition at line 280 of file MSSpWindowColumns.h.
Referenced by resolutionQuant().
|
private |
Definition at line 262 of file MSSpWindowColumns.h.
Referenced by totalBandwidth().
|
private |
Definition at line 281 of file MSSpWindowColumns.h.
Referenced by totalBandwidthQuant().