KernelDB.metakernels_covering()
Tracked metakernels whose SPK kernels cover a body.
Usage
KernelDB.metakernels_covering(
body_id,
et=None,
mission=None,
)Meant for code that needs to pick a metakernel rather than show one. The method prints nothing and writes nothing, so it works on a read_only=True database. Coverage is read from the SPK files each metakernel loads that exist on disk. Identical aliases are skipped. With et only the metakernels covering that ephemeris time are returned. Without it, any coverage counts.
Parameters
body_id: int-
NAIF ID of the body, for example
-121for BepiColombo MPO. et: float | None = None-
Ephemeris time that must be covered.
Noneaccepts any coverage at all. mission: str | None = None- Case-insensitive mission prefix filter.
Returns
list[dict]-
The matching list_metakernels rows, each with an added
intervalskey: the(et_start, et_end)windows for the body.
Raises
ImportError- SpiceyPy is not installed.
Examples
>>> import spiceypy
>>> db = KernelDB(read_only=True)
>>> spiceypy.furnsh("naif0012.tls")
>>> rows = db.metakernels_covering(-121, spiceypy.utc2et("2027-06-01")) # BepiColombo MPO