These routines trace magnetic field lines and compute physically significant points along them. Starting from a given spacecraft position, you can locate the mirror point for a particle at a specified pitch angle, find where the field line crosses a target altitude (foot point), trace the complete field line geometry for visualization, identify the magnetic equator (Bmin point), and evaluate the magnetic field vector at any set of input positions.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/PRBEM/IRBEM/llms.txt
Use this file to discover all available pages before exploring further.
FIND_MIRROR_POINT
FIND_MIRROR_POINT locates the magnitude and GEO Cartesian position of the mirror point along the field line threading a given location, for a particle with a specified local pitch angle.
Parameters
Position and time dictionary with keys
x1, x2, x3 (coordinates in sysaxes) and dateTime (ISO 8601 string, datetime.datetime, or pd.Timestamp).Local pitch angle at the input position (degrees).
Outputs
Magnitude of the magnetic field at the input spacecraft position (nT).
Magnitude of the magnetic field at the mirror point (nT). This equals Bmirr for the given pitch angle.
GEO Cartesian coordinates [x, y, z] of the mirror point (Re).
Calling sequences
FIND_FOOT_POINT
FIND_FOOT_POINT traces the field line from the input position to find where it crosses a specified altitude in a chosen magnetic hemisphere. This is commonly used to map spacecraft positions to ionospheric conjugate points.
Parameters
Position and time dictionary. Keys:
x1, x2, x3, dateTime.Target altitude above Earth’s surface for the foot-point crossing (km).
Selects which magnetic hemisphere to trace into:
0— same magnetic hemisphere as the starting point+1— northern magnetic hemisphere-1— southern magnetic hemisphere+2— opposite magnetic hemisphere from the starting point
Outputs
GDZ coordinates [altitude (km), latitude (°), longitude (°)] of the field-line foot point.
Magnetic field vector at the foot point in GEO Cartesian coordinates (nT).
Magnitude of the magnetic field at the foot point (nT).
Calling sequences
TRACE_FIELD_LINE
TRACE_FIELD_LINE traces the complete field line passing through the input position, returning an array of GEO Cartesian positions from one end of the field line to the other, bounded by the reference surface at radius R0. In addition to the geometry, it returns the McIlwain L, Bmin, XJ, and local field magnitude at each traced point.
Parameters
Position and time dictionary. Keys:
x1, x2, x3, dateTime.Radius of the reference surface (Re) at which field-line tracing stops. Default is 1 Re (Earth’s surface). Use values less than 1 to trace into the drift loss cone.
Outputs
GEO Cartesian coordinates [x, y, z] of each point along the field line (Re). Array is trimmed to the
Nposit valid points.Number of valid points returned in
POSIT. Maximum is 3000.McIlwain L shell value for the traced field line.
Magnetic field magnitude at each point along the field line (nT).
Minimum magnetic field magnitude along the field line, located at the magnetic equator (nT).
Second adiabatic invariant I (Re).
Calling sequences
FIND_MAGEQUATOR
FIND_MAGEQUATOR traces the magnetic field line from the input position to locate the magnetic equator — the point of minimum field strength (Bmin) along the field line. It returns both Bmin and the GEO Cartesian coordinates of that equatorial crossing.
Parameters
Position and time dictionary. Keys:
x1, x2, x3, dateTime.Outputs
Magnetic field magnitude at the magnetic equator (nT).
GEO Cartesian coordinates [x, y, z] of the magnetic equator along the field line (Re).
Calling sequences
GET_FIELD_MULTI
GET_FIELD_MULTI computes the magnetic field vector (in GEO Cartesian coordinates) and its magnitude at each of the input positions, using the selected internal and external field models. This is the primary routine for evaluating the raw field at arbitrary points.
Parameters
Position and time dictionary with array-valued
x1, x2, x3, and dateTime. Multiple time points are supported.Outputs
X component of the magnetic field vector in GEO coordinates (nT).
Y component of the magnetic field vector in GEO coordinates (nT).
Z component of the magnetic field vector in GEO coordinates (nT).
Total magnetic field magnitude at each input position (nT).
Calling sequences
GET_MLT
GET_MLT computes the magnetic local time (MLT) from a position in GEO Cartesian coordinates and a date. It uses only the IGRF internal field model — no external field model or maginput is required.
Parameters
Position and time dictionary in GEO Cartesian coordinates. Keys:
x1 (Xgeo, Re), x2 (Ygeo, Re), x3 (Zgeo, Re), and dateTime.Outputs
Magnetic local time at the input position (hours, 0–24).
Calling sequences
GET_MLT accepts a single position and time (scalar inputs), unlike the multi-point routines. In Python, get_mlt() returns a scalar float rather than a dictionary.