ADCS.environment.ephemeris.de442s module

JPL’s compact DE442s planetary ephemeris.

ADCS.environment.ephemeris.de442s.DE442S

alias of DE442s

class ADCS.environment.ephemeris.de442s.DE442s(filepath=None)[source]

Bases: DE442

Use the optional DE442s kernel for years 1849 through 2150.

If the kernel is missing, the parent loader can fetch it from the official JPL NAIF archive into the user cache. position_eci and sun_position_eci match the other DE models.

Parameters:

filepath (Path | None)

DOWNLOAD_URL = 'https://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/planets/de442s.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_DE442S_EPHEMERIS_PATH'
KERNEL_FILENAME = 'de442s.bsp'