static Converter * getConverter(const QString &oldUnits, const QString &newUnits)
Factory for producing the appropriate converter.
static const QList< QString > VELOCITY_UNITS
Converter(const QString &oldUnits, const QString &newUnits)
static void convert(casacore::Vector< double > &resultValues, int sourceIndex, int destIndex, casacore::SpectralCoordinate coordinate)
virtual double toPixel(double value, casacore::SpectralCoordinate coordinate)=0
Abstract methods to be implemented by subclasses.
static UnitType getUnitType(const QString &unit)
Interconvert pixel and frequency values.
QString getNewUnits() const
static const QList< QString > WAVELENGTH_UNITS
static const QList< QString > FREQUENCY_UNITS
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.