Go to the documentation of this file.
29 #ifndef MEASURES_MRADIALVELOCITY_H
30 #define MEASURES_MRADIALVELOCITY_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/measures/Measures/MeasBase.h>
35 #include <casacore/measures/Measures/MeasRef.h>
36 #include <casacore/casa/Quanta/MVRadialVelocity.h>
41 class MRadialVelocity;
42 class MCRadialVelocity;
43 template <
class M>
class MeasConvert;
44 template <
class M>
class ArrayMeasColumn;
45 template <
class M>
class ScalarMeasColumn;
238 const uInt *&typ)
const;
MRadialVelocity conversion routines.
Types
Each derived class should have a Types enumeration, specifying the recognised frame types.
Internal value for MRadialVelocity.
static MRadialVelocity fromDoppler(const MDoppler &dop)
Make a RadialVelocity from the Doppler velocity (assuming LSRK default)
MeasConvert< MRadialVelocity > Convert
Measure conversion use (i.e.
virtual uInt type() const
Get the type (== Register() of derived Measure (faster than Strings) All should have: static uInt myT...
A Measure: radial velocity.
Physical quantities within reference frame.
virtual String getRefString() const
Get the reference type (for records, including codes like R_)
virtual Bool setOffset(const Measure &in)
Set the offset in the reference (False if non-matching Measure)
MRadialVelocity()
Tip: In the following constructors and other functions, all MeasRef can be replaced with simple Measu...
Base class for values in a Measure.
static const String & showType(MRadialVelocity::Types tp)
virtual void checkTypes() const
Check if all internal tables of types (both enum and String) are complete and correct.
Types
Types of known MRadialVelocity Warning: The order defines the order in the translation matrix FromTo...
static Bool getType(MRadialVelocity::Types &tp, const String &in)
Translate string to reference code.
MeasRef< MRadialVelocity > Ref
Measure reference (i.e.
virtual const String & getDefaultType() const
Get the default reference type.
virtual Measure * clone() const
Make a copy.
static MRadialVelocity::Types castType(uInt tp)
Translate reference code.
static const String & showMe()
ScalarMeasColumn< MRadialVelocity > ScalarColumn
Measure table Columns (e.g., MRadialVelocity::ScalarColumn)
virtual Bool setRefString(const String &in)
Set the reference type to the specified String.
virtual const String * allTypes(Int &nall, Int &nextra, const uInt *&typ) const
Get a list of all known reference codes.
static void checkMyTypes()
this file contains all the compiler specific defines
virtual const String & tellMe() const
Tell me your type.
Bool giveMe(MRadialVelocity::Ref &mr, const String &in)
static const String * allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
MDoppler toDoppler()
Make a Doppler velocity (as an MDoppler::BETA default) from the RadialVelocity.
Base class for all measures.
A Measure: Doppler shift.
static uInt myType()
Get my type (as Register)
String: the storage and methods of handling collections of characters.
MCRadialVelocity MCType
Measure conversion routines for this class (i.e.
MVRadialVelocity MVType
Measure value container for this class (i.e.
bool Bool
Define the standard types used by Casacore.
ArrayMeasColumn< MRadialVelocity > ArrayColumn
Quantity get(const Unit &un) const
Get radial velocity in specified units.
virtual ~MRadialVelocity()
static void assure(const Measure &in)