29 #ifndef MEASURES_EARTHFIELD_H
30 #define MEASURES_EARTHFIELD_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Arrays/Vector.h>
35 #include <casacore/casa/Quanta/MVPosition.h>
EarthField()
Default constructor, generates default J2000 EarthField identification.
EarthField(const EarthField &other)
Copy constructor.
EarthField & operator=(const EarthField &other)
Copy assignment.
static uInt interval_reg_p
Interpolation interval.
Double dval_p[3][3]
Cached derivatives.
const Vector< Double > * derivative(const MVPosition &pos)
Return derivatives of field (to X, Y, Z).
Vector< Double > p_p
Work arrays for calculations.
void init()
Re-initialise EarthField object with specified model and epoch, or defaults STANDARD and J2000.
EarthFieldTypes method_p
Method to be used.
EarthField(EarthFieldTypes model, Double catepoch=51544.5)
Constructor with epoch in MJulian days (default is J2000)
void refresh()
Refresh calculations.
void fillField()
Create correct default fixedEpoch and catalogue field data.
Vector< Double > agh_p
List of spherical components.
static const Double INTV
Default interval to be used for linear approximation (in m)
Int lres_p
To reference results, and use a few in interim calculations, results are calculated in a circular buf...
const Vector< Double > & operator()(const MVPosition &pos)
Return the EarthField components.
MVPosition checkPos_p
Check position.
void copy(const EarthField &other)
Make a copy.
void calcField(const MVPosition &pos)
Calculate EarthField for longitude and latitude and altitude (m)
Vector< Double > result_p[4]
Last calculation.
void init(EarthFieldTypes model, Double catepoch=51544.5)
Double fixedEpoch_p
Fixed epoch to be used (MJD)
EarthFieldTypes
Known EarthField calculation models.
@ IGRF
Standard IGRF model.
@ STANDARD
Standard default model if none specified.
@ NONE
Make the field equal to zero.
Double pval_p[3]
Cached calculated field components.
this file contains all the compiler specific defines
const Double DER_INTV
Interval (m) for derivatives in IGRF model.
const Int PQ_LEN
Length of P and Q arrays, half length of CL/SL arrays in IGRF model.