28 #ifndef CASA_MVRADIALVELOCITY_H
29 #define CASA_MVRADIALVELOCITY_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Arrays/Vector.h>
35 #include <casacore/casa/Quanta/Quantum.h>
36 #include <casacore/casa/Quanta/MeasValue.h>
37 #include <casacore/casa/iosfwd.h>
42 template <
class T>
class Quantum;
149 virtual void print(ostream &os)
const;
MVRadialVelocity(const Vector< Double > &other)
Constructor from Vector.
MVRadialVelocity(const Vector< Quantity > &other)
Double makeF(const Unit &dt) const
Get correct data type conversion factor from input Quantum.
Bool nearAbs(const MVRadialVelocity &other, Double tol=1e-13) const
virtual Bool putValue(const Vector< Quantum< Double > > &in)
Set the internal value if correct values and dimensions.
Bool operator!=(const MVRadialVelocity &other) const
virtual void putVector(const Vector< Double > &in)
Set the value from internal units (set 0 for empty vector)
Bool operator==(const MVRadialVelocity &other) const
Comparisons.
MVRadialVelocity & operator+=(const MVRadialVelocity &other)
Addition.
MVRadialVelocity & operator-=(const MVRadialVelocity &other)
MVRadialVelocity(const Quantity &other)
Constructor from Quantum.
MVRadialVelocity(const MVRadialVelocity &other)
Copy constructor.
MVRadialVelocity()
Default constructor: generate a zero value.
Quantum< Vector< Double > > shiftFrequency(const Quantum< Vector< Double > > &freq) const
~MVRadialVelocity()
Destructor.
Quantity get() const
Get quantity in m/s.
virtual void print(ostream &os) const
Print data.
Vector< Double > shiftFrequency(const Vector< Double > &freq) const
Shift the input frequencies to the output frequencies.
static void assure(const MeasValue &in)
Tell me your type.
virtual Vector< Double > getVector() const
Get the value in internal units.
MVRadialVelocity(Double d)
Constructor from Double (assume m/s)
MVRadialVelocity(const Quantum< Vector< Double > > &other)
Bool near(const MVRadialVelocity &other, Double tol=1e-13) const
Double getValue() const
Adjust value: taken from base class, a NOP.
MVRadialVelocity & operator=(const MVRadialVelocity &other)
Copy assignment.
virtual MeasValue * clone() const
Clone.
Quantity get(const Unit &unit) const
Get the wave characteristics in (recognised) specified units.
virtual Vector< Quantum< Double > > getRecordValue() const
Get the internal value as a Vector<Quantity>.
const Double e
e and functions thereof:
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.