IGRF-14¶
International Geomagnetic Reference Field (14th generation). Computes Earth's magnetic field using spherical harmonic coefficients to degree 13, covering 1900 to 2030.
Note
For usage guidance and examples, see Magnetic Field Models in the Learn section.
Geodetic ENZ Output¶
igrf_geodetic_enz builtin ¶
igrf_geodetic_enz(epc: Epoch, x_geod: ndarray, angle_format: AngleFormat) -> ndarray
Compute IGRF-14 magnetic field in the geodetic ENZ frame.
The geodetic ENZ frame has zenith perpendicular to the WGS84 ellipsoid surface.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epc | Epoch | Epoch of computation | required |
x_geod | ndarray | Geodetic position [longitude, latitude, altitude_m]. Angle units controlled by angle_format. Altitude always in meters. | required |
angle_format | AngleFormat | Whether longitude/latitude are in degrees or radians | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Magnetic field [B_east, B_north, B_zenith] in nT |
Example
Geocentric ENZ Output¶
igrf_geocentric_enz builtin ¶
igrf_geocentric_enz(epc: Epoch, x_geod: ndarray, angle_format: AngleFormat) -> ndarray
Compute IGRF-14 magnetic field in the geocentric ENZ frame.
The geocentric ENZ frame has zenith along the geocentric radial direction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epc | Epoch | Epoch of computation | required |
x_geod | ndarray | Geodetic position [longitude, latitude, altitude_m]. Angle units controlled by angle_format. Altitude always in meters. | required |
angle_format | AngleFormat | Whether longitude/latitude are in degrees or radians | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Magnetic field [B_east, B_north, B_zenith] in nT |
ECEF Output¶
igrf_ecef builtin ¶
igrf_ecef(epc: Epoch, x_geod: ndarray, angle_format: AngleFormat) -> ndarray
Compute IGRF-14 magnetic field in the ECEF frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epc | Epoch | Epoch of computation | required |
x_geod | ndarray | Geodetic position [longitude, latitude, altitude_m]. Angle units controlled by angle_format. Altitude always in meters. | required |
angle_format | AngleFormat | Whether longitude/latitude are in degrees or radians | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Magnetic field [B_x, B_y, B_z] in ECEF frame, in nT |
See Also¶
- WMMHR-2025 -- High-resolution magnetic field model
- Magnetic Field Models (Learn) -- Conceptual explanation and usage examples
- Earth Models Module -- Complete API reference for earth models