26#ifndef MEASURES_MDOPPLER_H
27#define MEASURES_MDOPPLER_H
30#include <casacore/casa/aips.h>
31#include <casacore/casa/Arrays/ArrayFwd.h>
32#include <casacore/measures/Measures/MeasBase.h>
33#include <casacore/measures/Measures/MeasRef.h>
34#include <casacore/casa/Quanta/MVDoppler.h>
44template <
class T>
class Quantum;
227 const uInt *&typ)
const;
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.
ScalarMeasColumn< MDoppler > ScalarColumn
Measure table Columns (e.g., MDoppler::ScalarColumn)
ArrayMeasColumn< MDoppler > ArrayColumn
MeasRef< MDoppler > Ref
Measure reference (i.e.
MDoppler(const Quantity &dt)
MDoppler(const Quantity &dt, MDoppler::Types rf)
MeasConvert< MDoppler > Convert
Measure Convert (i.e.
MDoppler(const MVDoppler &dt, const MDoppler::Ref &rf)
Quantity get(const Unit &un) const
Get in specified units.
static const String & showMe()
MDoppler()
Tip: In the following constructors and other functions, all MeasRef can be replaced with simple Measu...
MVDoppler MVType
Measure value container for this class (i.e.
static Bool getType(MDoppler::Types &tp, const String &in)
Translate string to reference code.
virtual void checkTypes() const
Check if all internal tables of types (both enum and String) are complete and correct.
static MDoppler::Types castType(uInt tp)
Translate reference code.
static const String * allMyTypes(Int &nall, Int &nextra, const uInt *&typ)
MDoppler(const MVDoppler &dt, MDoppler::Types rf)
virtual const String & tellMe() const
Tell me your type.
static void checkMyTypes()
Quantum< Vector< Double > > shiftFrequency(const Quantum< Vector< Double > > &freq) const
MDoppler(const MeasValue *dt)
static const String & showType(MDoppler::Types tp)
Types
Types of known MDopplers Warning: The order defines the order in the translation matrix FromTo in th...
Vector< Double > shiftFrequency(const Vector< Double > &freq) const
Shift the input frequencies to the output frequencies.
MDoppler(const MVDoppler &dt)
Create from data and reference.
Bool giveMe(MDoppler::Ref &mr, const String &in)
MDoppler(const Measure *dt)
virtual Bool setRefString(const String &in)
Set the reference type to the specified String.
MCDoppler MCType
Measure conversion routines for this class (i.e.
virtual Measure * clone() const
Make a copy.
static const String & showType(uInt tp)
virtual String getRefString() const
Get the reference type (for records, including codes like R_)
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.