Converts intensity units: Jy/Beam, Kelvin, Fraction of Peak, etc.
More...
#include <ConverterIntensity.h>
|
static bool | isSupportedUnits (const QString &yUnit) |
|
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. More...
|
|
static double | convertJyBeams (const QString &sourceUnits, const QString &destUnits, double value, casacore::SpectralCoordinate &coord) |
| Converts between Jy/Beam units. More...
|
|
static double | convertJY (const QString &oldUnits, const QString &newUnits, double value, casacore::SpectralCoordinate &coord) |
|
static double | convertJYSR (const QString &oldUnits, const QString &newUnits, double value, casacore::SpectralCoordinate &coord) |
|
static double | convertKelvin (const QString &oldUnits, const QString &newUnits, double value, casacore::SpectralCoordinate &coord) |
|
|
static double | percentToValue (double yValue, double maxValue) |
|
static double | valueToPercent (double yValue, double maxValue) |
|
static double | convertQuantity (double yValue, double frequencyValue, const QString &oldUnits, const QString &newUnits, double beamSolidAngle, double beamArea) |
|
static void | convertJansky (casacore::Vector< float > &values, const QString &oldUnits, const QString &newUnits, casacore::SpectralCoordinate &coord) |
|
static void | convertKelvin (casacore::Vector< float > &values, const QString &oldUnits, const QString &newUnits, casacore::SpectralCoordinate &coord) |
|
static bool | isJansky (const QString &units) |
|
static bool | isKelvin (const QString &units) |
|
static double | convertNonKelvinUnits (double yValue, const QString &oldUnits, const QString &newUnits, double beamArea) |
|
static QString | getJanskyBaseUnits (const QString &units) |
|
static QString | getKelvinBaseUnits (const QString &units) |
|
static QString | stripPixels (const QString &units) |
|
static double | beamToArcseconds (double yValue, double beamArea) |
|
static double | arcsecondsToBeam (double yValue, double beamArea) |
|
static double | srToArcseconds (double yValue) |
|
static double | arcsecondsToSr (double yValue) |
|
Converts intensity units: Jy/Beam, Kelvin, Fraction of Peak, etc.
Definition at line 40 of file ConverterIntensity.h.
virtual casa::ConverterIntensity::~ConverterIntensity |
( |
| ) |
|
|
virtual |
casa::ConverterIntensity::ConverterIntensity |
( |
| ) |
|
|
private |
static double casa::ConverterIntensity::arcsecondsToBeam |
( |
double |
yValue, |
|
|
double |
beamArea |
|
) |
| |
|
staticprivate |
static double casa::ConverterIntensity::arcsecondsToSr |
( |
double |
yValue | ) |
|
|
staticprivate |
static double casa::ConverterIntensity::beamToArcseconds |
( |
double |
yValue, |
|
|
double |
beamArea |
|
) |
| |
|
staticprivate |
Hertz values are needed corresponding to the values for Jy/Beam Kelvin conversions only.
Both oldUnits and newUnits refer to the old and new units of the values array. In order to do FRACTION_OF_PEAK conversions, a maximum value with corresponding maximum units must be passed in.
static double casa::ConverterIntensity::convertJY |
( |
const QString & |
oldUnits, |
|
|
const QString & |
newUnits, |
|
|
double |
value, |
|
|
casacore::SpectralCoordinate & |
coord |
|
) |
| |
|
static |
static double casa::ConverterIntensity::convertJyBeams |
( |
const QString & |
sourceUnits, |
|
|
const QString & |
destUnits, |
|
|
double |
value, |
|
|
casacore::SpectralCoordinate & |
coord |
|
) |
| |
|
static |
Converts between Jy/Beam units.
For example, MJy/Beam <-> Jy/Beam
static double casa::ConverterIntensity::convertJYSR |
( |
const QString & |
oldUnits, |
|
|
const QString & |
newUnits, |
|
|
double |
value, |
|
|
casacore::SpectralCoordinate & |
coord |
|
) |
| |
|
static |
static double casa::ConverterIntensity::convertKelvin |
( |
const QString & |
oldUnits, |
|
|
const QString & |
newUnits, |
|
|
double |
value, |
|
|
casacore::SpectralCoordinate & |
coord |
|
) |
| |
|
static |
static double casa::ConverterIntensity::convertNonKelvinUnits |
( |
double |
yValue, |
|
|
const QString & |
oldUnits, |
|
|
const QString & |
newUnits, |
|
|
double |
beamArea |
|
) |
| |
|
staticprivate |
static double casa::ConverterIntensity::convertQuantity |
( |
double |
yValue, |
|
|
double |
frequencyValue, |
|
|
const QString & |
oldUnits, |
|
|
const QString & |
newUnits, |
|
|
double |
beamSolidAngle, |
|
|
double |
beamArea |
|
) |
| |
|
staticprivate |
static QString casa::ConverterIntensity::getJanskyBaseUnits |
( |
const QString & |
units | ) |
|
|
staticprivate |
static QString casa::ConverterIntensity::getKelvinBaseUnits |
( |
const QString & |
units | ) |
|
|
staticprivate |
static bool casa::ConverterIntensity::isJansky |
( |
const QString & |
units | ) |
|
|
staticprivate |
static bool casa::ConverterIntensity::isKelvin |
( |
const QString & |
units | ) |
|
|
staticprivate |
static bool casa::ConverterIntensity::isSupportedUnits |
( |
const QString & |
yUnit | ) |
|
|
static |
static double casa::ConverterIntensity::percentToValue |
( |
double |
yValue, |
|
|
double |
maxValue |
|
) |
| |
|
staticprivate |
static double casa::ConverterIntensity::srToArcseconds |
( |
double |
yValue | ) |
|
|
staticprivate |
static QString casa::ConverterIntensity::stripPixels |
( |
const QString & |
units | ) |
|
|
staticprivate |
static double casa::ConverterIntensity::valueToPercent |
( |
double |
yValue, |
|
|
double |
maxValue |
|
) |
| |
|
staticprivate |
const QString casa::ConverterIntensity::ADU |
|
static |
const double casa::ConverterIntensity::ARCSECONDS_PER_STERADIAN |
|
staticprivate |
const QList<QString> casa::ConverterIntensity::BEAM_UNITS |
|
staticprivate |
const QString casa::ConverterIntensity::FRACTION_OF_PEAK |
|
static |
const double casa::ConverterIntensity::FREQUENCY_FACTOR |
|
staticprivate |
const QString casa::ConverterIntensity::JY |
|
static |
const QString casa::ConverterIntensity::JY_ARCSEC |
|
static |
const QString casa::ConverterIntensity::JY_BEAM |
|
static |
const QString casa::ConverterIntensity::JY_SR |
|
static |
const QList<QString> casa::ConverterIntensity::JY_SR_UNITS |
|
staticprivate |
const QList<QString> casa::ConverterIntensity::JY_UNITS |
|
staticprivate |
const QString casa::ConverterIntensity::KELVIN |
|
static |
const QList<QString> casa::ConverterIntensity::KELVIN_UNITS |
|
staticprivate |
const double casa::ConverterIntensity::SPEED_LIGHT_FACTOR |
|
staticprivate |
const QString casa::ConverterIntensity::TIMES_PIXELS |
|
static |
The documentation for this class was generated from the following file: