Go to the documentation of this file.
29 #ifndef CASA_MVEPOCH_H
30 #define CASA_MVEPOCH_H
34 #include <casacore/casa/aips.h>
35 #include <casacore/casa/Arrays/Vector.h>
36 #include <casacore/casa/Quanta/Quantum.h>
37 #include <casacore/casa/Quanta/MeasValue.h>
174 virtual void print(ostream &os)
const;
static const Double secInDay
Constants.
Bool operator==(const MVEpoch &other) const
Comparisons.
Quantity getTime() const
Get value with units.
Double makeDay(const Quantity &in) const
Make days from quantity.
MVEpoch(const Vector< Quantity > &in)
static const Unit unitDay
MVEpoch(const Quantum< Vector< Double > > &in)
MVEpoch(Double inday, Double infrac=0)
Constructor with time in days.
MVEpoch & operator+=(const MVEpoch &other)
Add times.
Quantity getTime(const Unit &unit) const
Bool near(const MVEpoch &other, Double tol=1e-13) const
Double wday
Whole days Note that if higher precision is needed, the splitting could be in 0.001 days and fraction...
virtual void adjust()
Adjust the time to its constituent parts.
virtual void adjust(Double &res)
Adjust value and return a normalisation value.
MVEpoch(const Quantity &in)
Constructor with Quantities.
Double frday
Fraction of days.
Double getDay() const
Get value of integer days.
virtual Vector< Quantum< Double > > getRecordValue() const
Get the internal value as a Vector<Quantity>.
static void assure(const MeasValue &in)
MVEpoch()
Default constructor, generates default 0 epoch.
Bool nearAbs(const MVEpoch &other, Double tol=1e-13) const
MVEpoch & operator-=(const MVEpoch &other)
Difference times.
Bool operator!=(const MVEpoch &other) const
virtual Vector< Double > getVector() const
Get the value in internal units.
virtual void print(ostream &os) const
Print a value.
void addTime(Double in)
Add time from days.
Double get() const
Get value in days.
MVEpoch & operator=(const MVEpoch &other)
Copy assignment.
virtual MeasValue * clone() const
Clone a value.
this file contains all the compiler specific defines
MVEpoch(const Quantity &in1, const Quantity &in2)
MVEpoch operator+(const MVEpoch &other) const
Double getDayFraction() const
Get fraction of days.
const Double e
e and functions thereof:
virtual uInt type() const
Tell me your type.
virtual Bool putValue(const Vector< Quantum< Double > > &in)
Set the internal value if correct values and dimensions.
MVEpoch(const MVEpoch &other)
Copy constructor.
bool Bool
Define the standard types used by Casacore.
MVEpoch(const Vector< Double > &inday)
MVEpoch operator-(const MVEpoch &other) const
virtual void putVector(const Vector< Double > &in)
Set the value from internal units (set 0 for empty vector)