29 #ifndef MEASURES_MDOPPLER_H
30 #define MEASURES_MDOPPLER_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Arrays/ArrayFwd.h>
35 #include <casacore/measures/Measures/MeasBase.h>
36 #include <casacore/measures/Measures/MeasRef.h>
37 #include <casacore/casa/Quanta/MVDoppler.h>
47 template <
class T>
class Quantum;
230 const uInt *&typ)
const;
static const String & showType(uInt tp)
MDoppler(const Quantity &dt, const MDoppler::Ref &rf)
static void assure(const Measure &in)
virtual Bool setOffset(const Measure &in)
Set the offset in the reference (False if non-matching Measure)
virtual const String & getDefaultType() const
Get the default reference type.
static const String & showMe()
MDoppler(const Quantity &dt)
virtual const String & tellMe() const
Tell me your type.
MDoppler(const Quantity &dt, MDoppler::Types rf)
MDoppler(const MVDoppler &dt, const MDoppler::Ref &rf)
Quantity get(const Unit &un) const
Get in specified units.
MCDoppler MCType
Measure conversion routines for this class (i.e.
virtual Measure * clone() const
Make a copy.
MDoppler()
Tip: In the following constructors and other functions, all MeasRef can be replaced with simple Measu...
static Bool getType(MDoppler::Types &tp, const String &in)
Translate string to reference code.
MVDoppler MVType
Measure value container for this class (i.e.
virtual void checkTypes() const
Check if all internal tables of types (both enum and String) are complete and correct.
MeasConvert< MDoppler > Convert
Measure Convert (i.e.
static MDoppler::Types castType(uInt tp)
Translate reference code.
static const String & showType(MDoppler::Types tp)
MDoppler(const MVDoppler &dt, MDoppler::Types rf)
static void checkMyTypes()
Vector< Double > shiftFrequency(const Vector< Double > &freq) const
Shift the input frequencies to the output frequencies.
MDoppler(const MeasValue *dt)
ScalarMeasColumn< MDoppler > ScalarColumn
Measure table Columns (e.g., MDoppler::ScalarColumn)
Types
Types of known MDopplers Warning: The order defines the order in the translation matrix FromTo in th...
MeasRef< MDoppler > Ref
Measure reference (i.e.
MDoppler(const MVDoppler &dt)
Create from data and reference.
Bool giveMe(MDoppler::Ref &mr, const String &in)
MDoppler(const Measure *dt)
static const String * allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
ArrayMeasColumn< MDoppler > ArrayColumn
virtual Bool setRefString(const String &in)
Set the reference type to the specified String.
virtual String getRefString() const
Get the reference type (for records, including codes like R_)
Quantum< Vector< Double > > shiftFrequency(const Quantum< Vector< Double > > &freq) const
virtual const String * allTypes(Int &nall, Int &nextra, const uInt *&typ) const
Get a list of all known reference codes.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.