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