ADCS.environment.magnetic_field.igrf14 module¶
IGRF-14 magnetic field model backed by the existing selectable kernels.
- class ADCS.environment.magnetic_field.igrf14.IGRF14(implementation='igrf_numba', *, name=None)[source]¶
Bases:
MagneticFieldIGRF-14 with either the Numba or ppigrf backend.
Coefficients are published by IAGA Division V Working Group V-MOD. Cite Beggan et al. (2025), doi:10.1186/s40623-025-02360-0, and the IGRF-14 coefficient data DOI listed in the project citation guide.
field(position_ecef_km, date)accepts one ECEF position or an(N, 3)array and returns ECEF field vectors in tesla. Dates may be a singledatetimeor one date per position.- Parameters:
implementation (str)
name (str | None)
- field_gc(r, theta, phi, date)[source]¶
Evaluate IGRF-14 in geocentric spherical coordinates.
- Parameters:
r (float or numpy.ndarray) – Geocentric radius [km].
theta (float or numpy.ndarray) – Geocentric colatitude [deg].
phi (float or numpy.ndarray) – East longitude [deg].
date (datetime.datetime or sequence) – One UTC date or a date per position.
- Returns:
Radial, southward, and eastward field components [nT].
- Return type:
tuple