ADCS.environment.magnetic_field.chaos8 module¶
CHAOS-8.7 internal field from the DTU core and lithospheric SHC files.
- class ADCS.environment.magnetic_field.chaos8.CHAOS8(core_path=None, static_path=None, *, include_static=True)[source]¶
Bases:
MagneticFieldCHAOS-8.7 core plus static lithospheric internal magnetic field.
The two official SHC kernels are downloaded on first use. This evaluates CHAOS’s internal field; its external and induced field terms require additional activity indices and are outside this model’s interface.
The core coefficients span about 1997.1 to 2027.1. Outside that span the core field continues linearly from the nearest end (ChaosMagPy’s default), with a warning; accuracy then degrades with the unmodelled secular acceleration, roughly as for IGRF’s predictive secular variation.
- Parameters:
core_path (str | Path | None)
static_path (str | Path | None)
include_static (bool)
- field_gc(r, theta, phi, date)[source]¶
Evaluate the CHAOS-8.7 internal field in 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 one date per position.
- Returns:
Radial, southward, and eastward components [nT].
- Return type:
tuple
- Raises:
ValueError – If the date count does not match the positions.
- name: str | None = 'chaos8'¶
Short identifier for the model (for example
"wmm2025").Nonemeans the class name is used instead.