28 #ifndef MEAS_EARTHMAGNETICENGINE_H
29 #define MEAS_EARTHMAGNETICENGINE_H
32 #include <casacore/casa/aips.h>
33 #include<casacore/meas/MeasUDF/MeasEngine.h>
34 #include <casacore/measures/Measures/EarthMagneticMachine.h>
35 #include <casacore/measures/Measures/MEarthMagnetic.h>
36 #include <casacore/measures/Measures/MCEarthMagnetic.h>
37 #include <casacore/measures/Measures/MeasConvert.h>
43 class DirectionEngine;
const Unit & unit() const
Get the unit of the function's result.
virtual void deriveAttr(const Unit &unit, Int nval)
Let a derived class derive its attributes.
Array< Double > getHeights(const TableExprId &id)
MEarthMagnetic makeEarthMagnetic(const Quantity &qh, const Quantity &q1, const Quantity &q2) const
Make an MEarthMagnetic from xyz or length,angles.
void set(MEarthMagnetic::Types toRefType, Int toValueType, Bool asLOS, Bool asLong, Bool useModel)
Set the types of the result.
void setPositionEngine(PositionEngine &engine)
Set the possible position engine.
virtual ~EarthMagneticEngine()
PositionEngine * itsPositionEngine
Array< Double > getArrayDouble(const TableExprId &id)
Get the values.
MEarthMagnetic::Convert itsConverter
EpochEngine * itsEpochEngine
virtual String stripMeasType(const String &type)
Strip a possible suffix from the reference type.
Int valueType() const
Get the value type.
Array< MEarthMagnetic > getEarthMagnetics(const TableExprId &id)
void handleHeight(TENShPtr &operand)
Handle the heights argument.
void handleScalars(const TENShPtr &e1, const TENShPtr &e2, const TENShPtr &e3)
virtual void handleValues(TableExprNode &operand, const TableExprId &id, Array< MEarthMagnetic > &earthMagnetics)
Let a derive class handle the values.
void handleEarthMagnetic(std::vector< TENShPtr > &args, uInt &argnr)
Handle the argument(s) giving the input earthMagnetics or direction and reference type.
DirectionEngine * itsDirectionEngine
void copyLLEM(EarthMagneticMachine &emm, double *&outPtr)
virtual void setValueType(Int valueType)
Let a derived class set its value type.
void setDirectionEngine(DirectionEngine &engine)
Set the possible direction engine.
void setEpochEngine(EpochEngine &engine)
Set the MeasConvert object.
EarthMagneticMachine itsMachine
void copyEM(const MVEarthMagnetic &em, double *&outPtr)
Types
Types of known MEarthMagnetics Tip: The order defines the order in the translation matrix FromTo in ...
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.