Skip to main content

metakernels_covering()

Tracked metakernels whose SPK kernels cover a body (at et, if given).

Usage

Source

metakernels_covering(
    body_id,
    et=None,
    mission=None,
)

Opens the database named in the config read-only, does one thing and closes it. This function calls KernelDB.metakernels_covering. Coverage is read from the SPK files each metakernel loads that exist on disk. Identical aliases are skipped.

Parameters

body_id: int

NAIF ID of the body, for example -121 for BepiColombo MPO.

et: float | None = None

Ephemeris time that must be covered. None accepts any coverage at all.

mission: str | None = None
Case-insensitive mission prefix filter.

Returns

list[dict]
The tracked metakernels as KernelDB.list_metakernels returns them, each with an added intervals key: the (et_start, et_end) windows for the body.

Raises

ImportError
SpiceyPy is not installed.

Examples

>>> import spiceypy
>>> from spice_kernel_db import metakernels_covering
>>> spiceypy.furnsh("naif0012.tls")
>>> rows = metakernels_covering(-121, spiceypy.utc2et("2027-06-01"))  # BepiColombo MPO