WSClean
|
Contains information about a single band ("spectral window"). More...
#include <banddata.h>
Public Types | |
typedef std::reverse_iterator< const double * > | const_reverse_iterator |
typedef std::reverse_iterator< double * > | reverse_iterator |
Public Member Functions | |
BandData () | |
Construct an empty instance. | |
BandData (casacore::MSSpectralWindow &spwTable) | |
Construct an instance from a spectral window table. More... | |
BandData (casacore::MSSpectralWindow &spwTable, size_t bandIndex) | |
Construct an instance from a specified entry of a spectral window table. More... | |
BandData (const BandData &source) | |
Copy constructor. More... | |
BandData (const BandData &source, size_t startChannel, size_t endChannel) | |
Construct a new instance from a part of another band. More... | |
BandData (size_t channelCount, const double *frequencies) | |
Construct a new BandData class and initialize it with an array of frequencies. More... | |
~BandData () | |
Destructor. More... | |
double | BandEnd () const |
Get the end of the frequency range covered by this band. More... | |
double | BandStart () const |
Get the start of the frequency range covered by this band. More... | |
double | Bandwidth () const |
Get the total bandwidth covered by this band. More... | |
double * | begin () |
Iterator over frequencies, pointing to first channel. | |
const double * | begin () const |
Constant iterator over frequencies, pointing to first channel. | |
double | CentreFrequency () const |
Get the centre frequency. More... | |
double | CentreWavelength () const |
Get the wavelength of the central channel. More... | |
size_t | ChannelCount () const |
Retrieve number of channels in this band. More... | |
double | ChannelFrequency (size_t channelIndex) const |
Get the frequency in Hz of a specified channel. More... | |
double | ChannelWavelength (size_t channelIndex) const |
Get the wavelength in m of a specified channel. More... | |
double * | end () |
Iterator over frequencies, pointing past last channel. | |
const double * | end () const |
Constant iterator over frequencies, pointing to last channel. | |
double | FrequencyStep () const |
Get the distance between channels in Hz. More... | |
double | HighestFrequency () const |
Get the frequency of the last channel. More... | |
double | LongestWavelength () const |
Get the wavelength of the first channel. More... | |
double | LowestFrequency () const |
Get the frequency of the first channel. More... | |
void | operator= (const BandData &source) |
Assignment operator. | |
std::reverse_iterator< double * > | rbegin () |
std::reverse_iterator< const double * > | rbegin () const |
std::reverse_iterator< double * > | rend () |
std::reverse_iterator< const double * > | rend () const |
void | Set (size_t channelCount, const double *frequencies) |
Assign new frequencies to this instance. More... | |
double | SmallestWavelength () const |
Get the wavelength of the last channel. More... | |
Static Public Member Functions | |
static double | FrequencyToLambda (double frequencyHz) |
Convert a frequency to a wavelength. More... | |
Contains information about a single band ("spectral window").
A band consists of a sequence of contiguous channels.
|
inline |
Construct an instance from a spectral window table.
The spectral window table can only have a single entry, otherwise an exception is thrown.
spwTable | The CASA Measurement Set spectral window table. |
|
inline |
Construct an instance from a specified entry of a spectral window table.
spwTable | The CASA Measurement Set spectral window table. |
bandIndex | The entry index of the spectral window table. |
|
inline |
Copy constructor.
source | Copied to the new banddata. |
|
inline |
Construct a new instance from a part of another band.
source | Instance that is partially copied. |
startChannel | Start of range of channels that are copied. |
endChannel | End of range, exclusive. |
|
inline |
Construct a new BandData class and initialize it with an array of frequencies.
channelCount | Number of channels in the new instance. |
frequencies | Array of channelCount doubles containing the channel frequencies. |
|
inline |
Destructor.
|
inline |
Get the end of the frequency range covered by this band.
|
inline |
Get the start of the frequency range covered by this band.
|
inline |
Get the total bandwidth covered by this band.
|
inline |
Get the centre frequency.
|
inline |
Get the wavelength of the central channel.
|
inline |
Retrieve number of channels in this band.
|
inline |
Get the frequency in Hz of a specified channel.
channelIndex | Zero-indexed channel index. |
|
inline |
Get the wavelength in m of a specified channel.
channelIndex | Zero-indexed channel index. |
|
inline |
Get the distance between channels in Hz.
|
inlinestatic |
Convert a frequency to a wavelength.
frequencyHz | Frequency in Hz. |
|
inline |
Get the frequency of the last channel.
|
inline |
Get the wavelength of the first channel.
|
inline |
Get the frequency of the first channel.
|
inline |
Assign new frequencies to this instance.
channelCount | Number of channels. |
frequencies | Array of channelCount doubles containing the channel frequencies. |
|
inline |
Get the wavelength of the last channel.