ADCS.environment.ephemeris.de442 module

JPL DE442 planetary ephemeris, downloaded from the NAIF kernel archive.

class ADCS.environment.ephemeris.de442.DE442(filepath=None)[source]

Bases: DE421

DE442 implementation with the same interface and lifecycle as DE421.

The 114 MB kernel is fetched from JPL/NAIF on first use and stored in the user cache. ADCS_DE442_EPHEMERIS_PATH can point to a custom file, or filepath can be supplied to the constructor.

Parameters:

filepath (Path | None)

DOWNLOAD_URL = 'https://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/planets/de442.bsp'

High-precision planetary ephemeris interface based on Skyfield.

This class provides a unified interface for loading and accessing high-precision planetary ephemerides using the Skyfield library. It manages the retrieval, storage, and initialization of the JPL DE421 ephemeris file and exposes commonly used celestial bodies such as the Earth and the Sun.

The ephemeris data are represented in the International Celestial Reference Frame (ICRF), enabling precise position and velocity computations required for orbital dynamics, attitude determination, and navigation applications.

Mathematical Background

A planetary ephemeris provides the barycentric position and velocity of solar system bodies as continuous functions of time:

\[\mathbf{r}_i(t), \; \mathbf{v}_i(t) \quad \forall i \in \{\text{Sun, Earth, Moon, planets}\}\]

where \(\mathbf{r}_i\) and \(\mathbf{v}_i\) are expressed in the ICRF frame. These quantities are derived from numerical integration of the N-body equations of motion:

\[\ddot{\mathbf{r}}_i = \sum_{j \neq i} G m_j \frac{\mathbf{r}_j - \mathbf{r}_i} {\lVert \mathbf{r}_j - \mathbf{r}_i \rVert^3},\]

with relativistic and empirical corrections applied in the JPL models.

The DE421 ephemeris is valid over the time span:

\[1900 \le t \le 2050,\]

and provides sufficient accuracy for most Earth-orbiting spacecraft analyses.

Source: JPL Solar System Dynamics, DE421; see the project citation guide for the DE421 memorandum and Skyfield software reference.

param filepath:

Optional path for the JPL DE421 ephemeris file. If it is missing, the kernel is downloaded there after confirmation. If None, a bundled kernel is used, or a missing one is cached per user.

type filepath:

pathlib.Path | None

raises RuntimeError:

If the ephemeris file cannot be downloaded or loaded.

Note

This class internally initializes a shared Skyfield Skyfield timescale object, which should be reused across all time-dependent orbital computations to ensure consistency.

ENV_PATH_VARIABLE = 'ADCS_DE442_EPHEMERIS_PATH'
KERNEL_FILENAME = 'de442.bsp'