ADCS.environment.magnetic_field.wmm module

NOAA World Magnetic Model 2025 (WMM2025).

ADCS.environment.magnetic_field.wmm.WMM

alias of WMM2025

class ADCS.environment.magnetic_field.wmm.WMM2025(kernel_path=None)[source]

Bases: MagneticField

WMM2025 internal field, valid from 2025-01-01 through 2029-12-31.

field_gc returns geocentric spherical components in nT; field returns ECEF vectors in tesla. The official WMM COF is downloaded on first evaluation if missing from environment/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"). None means the class name is used instead.