casa
5.7.0-16
|
A class to provide easy read-only access to MSASpectralWindow columns. More...
#include <MSSpWindowColumns.h>
Public Member Functions | |
ROMSSpWindowColumns (const MSSpectralWindow &msSpWindow) | |
Create a columns object that accesses the data in the specified Table. More... | |
~ROMSSpWindowColumns () | |
The destructor does nothing special. More... | |
const ROArrayColumn< Double > & | chanFreq () const |
Access to columns. More... | |
const ROArrayQuantColumn < Double > & | chanFreqQuant () const |
const ROArrayMeasColumn < MFrequency > & | chanFreqMeas () const |
const ROArrayColumn< Double > & | chanWidth () const |
const ROArrayQuantColumn < Double > & | chanWidthQuant () const |
const ROArrayColumn< Double > & | effectiveBW () const |
const ROArrayQuantColumn < Double > & | effectiveBWQuant () const |
const ROScalarColumn< Int > & | freqGroup () const |
const ROScalarColumn< String > & | freqGroupName () const |
const ROScalarColumn< Int > & | ifConvChain () const |
const ROScalarColumn< Bool > & | flagRow () const |
const ROScalarColumn< Int > & | measFreqRef () const |
const ROScalarColumn< String > & | name () const |
const ROScalarColumn< Int > & | netSideband () const |
const ROScalarColumn< Int > & | numChan () const |
const ROScalarColumn< Double > & | refFrequency () const |
const ROScalarQuantColumn < Double > & | refFrequencyQuant () const |
const ROScalarMeasColumn < MFrequency > & | refFrequencyMeas () const |
const ROArrayColumn< Double > & | resolution () const |
const ROArrayQuantColumn < Double > & | resolutionQuant () const |
const ROScalarColumn< Double > & | totalBandwidth () const |
const ROScalarQuantColumn < Double > & | totalBandwidthQuant () const |
const ROArrayColumn< String > & | assocNature () const |
Access to optional columns. More... | |
const ROArrayColumn< Int > & | assocSpwId () const |
const ROScalarColumn< Int > & | bbcNo () const |
const ROScalarColumn< Int > & | bbcSideband () const |
const ROScalarColumn< Int > & | dopplerId () const |
const ROScalarColumn< Int > & | receiverId () const |
uInt | nrow () const |
Convenience function that returns the number of rows in any of the columns. More... | |
Int | matchSpw (const MFrequency &refFreq, uInt nChan, const Quantum< Double > &bandwidth, Int ifChain, const Quantum< Double > &tolerance, Int 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... | |
Int | 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, Int tryRow=-1) const |
Similar to above, but also pass in the frame info. More... | |
Vector< Int > | 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... | |
Int | 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 | |
ROMSSpWindowColumns () | |
void | attach (const MSSpectralWindow &msSpWindow) |
Private Member Functions | |
ROMSSpWindowColumns (const ROMSSpWindowColumns &) | |
ROMSSpWindowColumns & | operator= (const ROMSSpWindowColumns &) |
void | attachOptionalCols (const MSSpectralWindow &msSpWindow) |
Bool | matchRefFrequency (uInt row, MFrequency::Types refType, Double refFreqInHz, Double tolInHz) const |
Bool | matchRefFreqCnvtrd (uInt row, MFrequency refOrChanFreq, const Bool isRefFreq, const MeasFrame &measFrm, const MSDopplerColumns &msdopc, const MSSourceColumns &mssrcc, Double tolInHz) const |
Bool | matchChanFreq (uInt row, const Vector< Double > &chanFreqInHz, Double tolInHz) const |
Bool | matchIfConvChain (uInt row, Int ifChain) const |
Bool | matchTotalBandwidth (uInt row, Double bandwidthInHz, Double tolInHz) const |
Bool | matchNumChan (uInt row, Int nChan) const |
A class to provide easy read-only access to MSASpectralWindow columns.
Public interface
ROMSSpectralWindowColumns stands for Read-Only MeasurementSet SpectralWindow Table columns.
This class provides read-only 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 ROMSColumns for an example.
See MSColumns for the motivation.
Definition at line 82 of file MSSpWindowColumns.h.
casacore::ROMSSpWindowColumns::ROMSSpWindowColumns | ( | const MSSpectralWindow & | msSpWindow | ) |
Create a columns object that accesses the data in the specified Table.
casacore::ROMSSpWindowColumns::~ROMSSpWindowColumns | ( | ) |
The destructor does nothing special.
|
protected |
|
private |
Vector<Int> casacore::ROMSSpWindowColumns::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 128 of file MSSpWindowColumns.h.
References assocNature_p.
Referenced by casacore::MSSpWindowColumns::assocNature().
|
inline |
Definition at line 129 of file MSSpWindowColumns.h.
References assocSpwId_p.
Referenced by casacore::MSSpWindowColumns::assocSpwId().
|
protected |
|
private |
|
inline |
Definition at line 130 of file MSSpWindowColumns.h.
References bbcNo_p.
Referenced by casacore::MSSpWindowColumns::bbcNo().
|
inline |
Definition at line 131 of file MSSpWindowColumns.h.
References bbcSideband_p.
Referenced by casacore::MSSpWindowColumns::bbcSideband().
|
inline |
Access to columns.
Definition at line 93 of file MSSpWindowColumns.h.
References chanFreq_p.
Referenced by casacore::MSSpWindowColumns::chanFreq().
|
inline |
Definition at line 96 of file MSSpWindowColumns.h.
References chanFreqMeas_p.
Referenced by casacore::MSSpWindowColumns::chanFreqMeas().
|
inline |
Definition at line 94 of file MSSpWindowColumns.h.
References chanFreqQuant_p.
Referenced by casacore::MSSpWindowColumns::chanFreqQuant().
|
inline |
Definition at line 98 of file MSSpWindowColumns.h.
References chanWidth_p.
Referenced by casacore::MSSpWindowColumns::chanWidth().
|
inline |
Definition at line 99 of file MSSpWindowColumns.h.
References chanWidthQuant_p.
Referenced by casacore::MSSpWindowColumns::chanWidthQuant().
|
inline |
Definition at line 132 of file MSSpWindowColumns.h.
References dopplerId_p.
Referenced by casacore::MSSpWindowColumns::dopplerId().
|
inline |
Definition at line 101 of file MSSpWindowColumns.h.
References effectiveBW_p.
Referenced by casacore::MSSpWindowColumns::effectiveBW().
|
inline |
Definition at line 102 of file MSSpWindowColumns.h.
References effectiveBWQuant_p.
Referenced by casacore::MSSpWindowColumns::effectiveBWQuant().
|
inline |
Definition at line 107 of file MSSpWindowColumns.h.
References flagRow_p.
Referenced by casacore::MSSpWindowColumns::flagRow().
|
inline |
Definition at line 104 of file MSSpWindowColumns.h.
References freqGroup_p.
Referenced by casacore::MSSpWindowColumns::freqGroup().
|
inline |
Definition at line 105 of file MSSpWindowColumns.h.
References freqGroupName_p.
Referenced by casacore::MSSpWindowColumns::freqGroupName().
|
inline |
Definition at line 106 of file MSSpWindowColumns.h.
References ifConvChain_p.
Referenced by casacore::MSSpWindowColumns::ifConvChain().
|
private |
|
private |
|
private |
Int casacore::ROMSSpWindowColumns::matchSpw | ( | const MFrequency & | refFreq, |
uInt | nChan, | ||
const Quantum< Double > & | bandwidth, | ||
Int | ifChain, | ||
const Quantum< Double > & | tolerance, | ||
Int | 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.
Int casacore::ROMSSpWindowColumns::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, | ||
Int | tryRow = -1 |
||
) | const |
Similar to above, but also pass in the frame info.
Int casacore::ROMSSpWindowColumns::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 108 of file MSSpWindowColumns.h.
References measFreqRef_p.
Referenced by casacore::MSSpWindowColumns::measFreqRef().
|
inline |
Definition at line 109 of file MSSpWindowColumns.h.
References name_p.
Referenced by casacore::MSSpWindowColumns::name().
|
inline |
Definition at line 110 of file MSSpWindowColumns.h.
References netSideband_p.
Referenced by casacore::MSSpWindowColumns::netSideband().
|
inline |
Convenience function that returns the number of rows in any of the columns.
Definition at line 137 of file MSSpWindowColumns.h.
References chanFreq_p.
Referenced by casa::sdfiller::SpectralWindowRecord::fill().
|
inline |
Definition at line 111 of file MSSpWindowColumns.h.
References numChan_p.
Referenced by casacore::MSSpWindowColumns::numChan().
|
private |
|
inline |
Definition at line 133 of file MSSpWindowColumns.h.
References receiverId_p.
Referenced by casacore::MSSpWindowColumns::receiverId().
|
inline |
Definition at line 112 of file MSSpWindowColumns.h.
References refFrequency_p.
Referenced by casacore::MSSpWindowColumns::refFrequency().
|
inline |
Definition at line 115 of file MSSpWindowColumns.h.
References refFrequencyMeas_p.
Referenced by casacore::MSSpWindowColumns::refFrequencyMeas().
|
inline |
Definition at line 113 of file MSSpWindowColumns.h.
References refFrequencyQuant_p.
Referenced by casacore::MSSpWindowColumns::refFrequencyQuant().
|
inline |
Definition at line 117 of file MSSpWindowColumns.h.
References resolution_p.
Referenced by casacore::MSSpWindowColumns::resolution().
|
inline |
Definition at line 118 of file MSSpWindowColumns.h.
References resolutionQuant_p.
Referenced by casacore::MSSpWindowColumns::resolutionQuant().
|
inline |
Definition at line 120 of file MSSpWindowColumns.h.
References totalBandwidth_p.
Referenced by casacore::MSSpWindowColumns::totalBandwidth().
|
inline |
Definition at line 122 of file MSSpWindowColumns.h.
References totalBandwidthQuant_p.
Referenced by casacore::MSSpWindowColumns::totalBandwidthQuant().
|
private |
Definition at line 225 of file MSSpWindowColumns.h.
Referenced by assocNature().
|
private |
Definition at line 226 of file MSSpWindowColumns.h.
Referenced by assocSpwId().
|
private |
Definition at line 227 of file MSSpWindowColumns.h.
Referenced by bbcNo().
|
private |
Definition at line 228 of file MSSpWindowColumns.h.
Referenced by bbcSideband().
|
private |
Definition at line 210 of file MSSpWindowColumns.h.
Referenced by chanFreq(), and nrow().
|
private |
Definition at line 233 of file MSSpWindowColumns.h.
Referenced by chanFreqMeas().
|
private |
Definition at line 237 of file MSSpWindowColumns.h.
Referenced by chanFreqQuant().
|
private |
Definition at line 211 of file MSSpWindowColumns.h.
Referenced by chanWidth().
|
private |
Definition at line 238 of file MSSpWindowColumns.h.
Referenced by chanWidthQuant().
|
private |
Definition at line 229 of file MSSpWindowColumns.h.
Referenced by dopplerId().
|
private |
Definition at line 212 of file MSSpWindowColumns.h.
Referenced by effectiveBW().
|
private |
Definition at line 239 of file MSSpWindowColumns.h.
Referenced by effectiveBWQuant().
|
private |
Definition at line 213 of file MSSpWindowColumns.h.
Referenced by flagRow().
|
private |
Definition at line 214 of file MSSpWindowColumns.h.
Referenced by freqGroup().
|
private |
Definition at line 215 of file MSSpWindowColumns.h.
Referenced by freqGroupName().
|
private |
Definition at line 216 of file MSSpWindowColumns.h.
Referenced by ifConvChain().
|
private |
Definition at line 217 of file MSSpWindowColumns.h.
Referenced by measFreqRef().
|
private |
Definition at line 218 of file MSSpWindowColumns.h.
Referenced by name().
|
private |
Definition at line 219 of file MSSpWindowColumns.h.
Referenced by netSideband().
|
private |
Definition at line 220 of file MSSpWindowColumns.h.
Referenced by numChan().
|
private |
Definition at line 230 of file MSSpWindowColumns.h.
Referenced by receiverId().
|
private |
Definition at line 221 of file MSSpWindowColumns.h.
Referenced by refFrequency().
|
private |
Definition at line 234 of file MSSpWindowColumns.h.
Referenced by refFrequencyMeas().
|
private |
Definition at line 240 of file MSSpWindowColumns.h.
Referenced by refFrequencyQuant().
|
private |
Definition at line 222 of file MSSpWindowColumns.h.
Referenced by resolution().
|
private |
Definition at line 241 of file MSSpWindowColumns.h.
Referenced by resolutionQuant().
|
private |
Definition at line 223 of file MSSpWindowColumns.h.
Referenced by totalBandwidth().
|
private |
Definition at line 242 of file MSSpWindowColumns.h.
Referenced by totalBandwidthQuant().