ADCS.environment.magnetic_field.wmm module¶
NOAA World Magnetic Model 2025 (WMM2025).
- class ADCS.environment.magnetic_field.wmm.WMM2025(kernel_path=None)[source]¶
Bases:
MagneticFieldWMM2025 internal field, valid from 2025-01-01 through 2029-12-31.
field_gcreturns geocentric spherical components in nT;fieldreturns ECEF vectors in tesla. The official WMM COF is downloaded on first evaluation if missing fromenvironment/kernels.- Parameters:
kernel_path (str | Path | None)
- field_gc(r, theta, phi, date)[source]¶
Evaluate WMM2025 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 one date per position.
- Returns:
Radial, southward, and eastward field components [nT].
- Return type:
tuple
- Raises:
ValueError – If a date is outside 2025 through 2029.
- name: str | None = 'wmm2025'¶
Short identifier for the model (for example
"wmm2025").Nonemeans the class name is used instead.