28 #ifndef MEAS_DIRECTIONENGINE_H 29 #define MEAS_DIRECTIONENGINE_H 32 #include <casacore/casa/aips.h> 33 #include<casacore/meas/MeasUDF/EpochEngine.h> 34 #include<casacore/meas/MeasUDF/PositionEngine.h> 35 #include <casacore/tables/TaQL/ExprNode.h> 36 #include <casacore/measures/Measures/MDirection.h> 37 #include <casacore/measures/Measures/MCDirection.h> 38 #include <casacore/measures/Measures/MeasConvert.h> 39 #include <casacore/measures/TableMeasures/ArrayMeasColumn.h> 173 double& rise,
double&
set);
179 double* rise,
double*
set);
A Vector of integers, for indexing into Array<T> objects.
void handleDirType(TableExprNodeRep *operand)
Handle a direction reference type.
const Unit & unit() const
Get the unit.
A Measure: astronomical direction.
A Measure: position on Earth.
void setEpochEngine(EpochEngine &engine)
Set the possible epoch engine.
void handleDirArray(TableExprNodeRep *&operand)
Handle class for a table column expression tree.
Int ndim() const
Get the dimensionality.
TableExprNode itsExprNode
Container for Measure frame.
Engine for TaQL UDF Position conversions.
void setPositionEngine(PositionEngine &engine)
Set the possible position engine.
Abstract base class for a node in a table column expression tree.
void handleDirection(PtrBlock< TableExprNodeRep *> &args, uInt &argnr, Bool riseSet)
Handle the argument(s) giving the input directions and reference type.
Read only access to table array Measure columns.
Array< Double > getArrayDouble(const TableExprId &id, Bool riseSet, Bool asDirCos)
Get the values.
A Measure: instant in time.
Bool isConstant() const
Tell if the expression is constant.
Types
Types of known MDirections Warning: The order defines the order in the translation matrix FromTo in ...
PositionEngine * itsPositionEngine
const IPosition & shape() const
Get the shape.
MDirection::Types refType() const
Get the reference type.
ArrayMeasColumn< MDirection > itsMeasCol
void handleValues(TableExprNode &operand, const TableExprId &id, Array< MDirection > &directions)
Array< MDirection > itsConstants
Engine for TaQL UDF Epoch conversions.
MDirection::Convert itsConverter
Engine for TaQL UDF Direction conversions.
void handleScalars(TableExprNodeRep *e1, TableExprNodeRep *e2)
void calcRiseSet(const MDirection &dir, const MPosition &pos, const MEpoch &epoch, double h, double &rise, double &set)
Calucate the rise and set time of a source for a given position and epoch.
bool Bool
Define the standard types used by Casacore.
void setConverter(MDirection::Types toType)
Set the MeasConvert object.
EpochEngine * itsEpochEngine
A drop-in replacement for Block<T*>.
int fillRiseSet(double epoch, const MDirection &dir, double lat, double h, const MEpoch &off, double *rise, double *set)
void handleNames(TableExprNodeRep *operand)
Array< MDirection > getDirections(const TableExprId &id)
Get the directions.
The identification of a TaQL selection subject.
MDirection::Types itsRefType
void handleConstant(TableExprNodeRep *operand)
this file contains all the compiler specific defines