26 #ifndef CONVERTERINTENSITY_H_
27 #define CONVERTERINTENSITY_H_
47 static const QString
JY;
48 static const QString
ADU;
56 const QString& oldUnits,
const QString& newUnits,
57 double maxValue,
const QString& maxUnits,
61 static double convertJyBeams(
const QString& sourceUnits,
const QString& destUnits,
63 static double convertJY(
const QString& oldUnits,
const QString& newUnits,
65 static double convertJYSR(
const QString& oldUnits,
const QString& newUnits,
67 static double convertKelvin(
const QString& oldUnits,
const QString& newUnits,
76 const QString& oldUnits,
const QString& newUnits,
77 double beamSolidAngle,
double beamArea );
82 static bool isJansky(
const QString& units );
83 static bool isKelvin(
const QString& units );
85 const QString& newUnits,
double beamArea );
static const QList< QString > BEAM_UNITS
static QString stripPixels(const QString &units)
static const double ARCSECONDS_PER_STERADIAN
static double arcsecondsToSr(double yValue)
static void convert(casacore::Vector< float > &values, const casacore::Vector< float > hertzValues, const QString &oldUnits, const QString &newUnits, double maxValue, const QString &maxUnits, double beamAngle, double beamArea, casacore::SpectralCoordinate coord)
Hertz values are needed corresponding to the values for Jy/Beam Kelvin conversions only...
static double convertKelvin(const QString &oldUnits, const QString &newUnits, double value, casacore::SpectralCoordinate &coord)
static QString getKelvinBaseUnits(const QString &units)
static double srToArcseconds(double yValue)
static const QList< QString > JY_UNITS
static bool isKelvin(const QString &units)
static const double FREQUENCY_FACTOR
static double percentToValue(double yValue, double maxValue)
static const QList< QString > KELVIN_UNITS
static const QString TIMES_PIXELS
static const QString KELVIN
static void convertJansky(casacore::Vector< float > &values, const QString &oldUnits, const QString &newUnits, casacore::SpectralCoordinate &coord)
static double convertNonKelvinUnits(double yValue, const QString &oldUnits, const QString &newUnits, double beamArea)
static double valueToPercent(double yValue, double maxValue)
static const QString FRACTION_OF_PEAK
static QString getJanskyBaseUnits(const QString &units)
static double beamToArcseconds(double yValue, double beamArea)
static double convertJyBeams(const QString &sourceUnits, const QString &destUnits, double value, casacore::SpectralCoordinate &coord)
Converts between Jy/Beam units.
static bool isJansky(const QString &units)
static const double SPEED_LIGHT_FACTOR
static const QString JY_SR
static const QString JY_ARCSEC
static double convertJY(const QString &oldUnits, const QString &newUnits, double value, casacore::SpectralCoordinate &coord)
Interconvert pixel and frequency values.
virtual ~ConverterIntensity()
static double convertJYSR(const QString &oldUnits, const QString &newUnits, double value, casacore::SpectralCoordinate &coord)
static double arcsecondsToBeam(double yValue, double beamArea)
static bool isSupportedUnits(const QString &yUnit)
Converts intensity units: Jy/Beam, Kelvin, Fraction of Peak, etc.
static const QList< QString > JY_SR_UNITS
static const QString JY_BEAM
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
static double convertQuantity(double yValue, double frequencyValue, const QString &oldUnits, const QString &newUnits, double beamSolidAngle, double beamArea)