Go to the documentation of this file.
29 #ifndef MEASURES_MDOPPLER_H
30 #define MEASURES_MDOPPLER_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/MVDoppler.h>
43 template <
class M>
class MeasConvert;
44 template <
class M>
class ArrayMeasColumn;
45 template <
class M>
class ScalarMeasColumn;
46 template <
class T>
class Vector;
47 template <
class T>
class Quantum;
231 const uInt *&typ)
const;
static const String & showType(MDoppler::Types tp)
static const String * allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
virtual const String & getDefaultType() const
Get the default reference type.
MDoppler conversion routines
virtual String getRefString() const
Get the reference type (for records, including codes like R_)
MCDoppler MCType
Measure conversion routines for this class (i.e.
static const String & showMe()
MDoppler()
Tip: In the following constructors and other functions, all MeasRef can be replaced with simple Measu...
ArrayMeasColumn< MDoppler > ArrayColumn
Physical quantities within reference frame.
virtual uInt type() const
Get the type (== Register() of derived Measure (faster than Strings) All should have: static uInt myT...
Internal value for MDoppler.
static void checkMyTypes()
ScalarMeasColumn< MDoppler > ScalarColumn
Measure table Columns (e.g., MDoppler::ScalarColumn)
virtual void checkTypes() const
Check if all internal tables of types (both enum and String) are complete and correct.
Base class for values in a Measure.
static uInt myType()
Get my type (as Register)
MeasConvert< MDoppler > Convert
Measure Convert (i.e.
virtual Measure * clone() const
Make a copy.
virtual Bool setOffset(const Measure &in)
Set the offset in the reference (False if non-matching Measure)
MeasRef< MDoppler > Ref
Measure reference (i.e.
Bool giveMe(MDoppler::Ref &mr, const String &in)
Types
Types of known MDopplers Warning: The order defines the order in the translation matrix FromTo in th...
static MDoppler::Types castType(uInt tp)
Translate reference code.
static Bool getType(MDoppler::Types &tp, const String &in)
Translate string to reference code.
this file contains all the compiler specific defines
virtual const String & tellMe() const
Tell me your type.
virtual Bool setRefString(const String &in)
Set the reference type to the specified String.
Base class for all measures.
A Measure: Doppler shift.
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
Quantity get(const Unit &un) const
Get in specified units.
virtual const String * allTypes(Int &nall, Int &nextra, const uInt *&typ) const
Get a list of all known reference codes.
static void assure(const Measure &in)
Vector< Double > shiftFrequency(const Vector< Double > &freq) const
Shift the input frequencies to the output frequencies.
MVDoppler MVType
Measure value container for this class (i.e.