irfpy.mexpvat.esaspice

ESASPICE metakernel handling.

This module provides access to the SPICE metakernel for ESA planetary missions (Mars Express, Venus Express, …).

The metakernel file path is specified in the .irfpyrc configuration file, under the [mexpvat] section:

[mexpvat]
metakernel = /path/to/meta_kernel.tm

Usage:

>>> from irfpy.mexpvat import esaspice
>>> esaspice.furnsh_mk()   # Load the metakernel specified in .irfpyrc

furnsh_mk() reads metakernel from [mexpvat] and calls spice.furnsh() with it. If the entry is not defined, or the file does not exist, nothing is done (a warning is logged).

irfpy.mexpvat.esaspice.metakernel_name()[source]

Return the metakernel path from [mexpvat] metakernel in .irfpyrc.

Returns:

Metakernel file path, or None if not specified.

irfpy.mexpvat.esaspice.furnsh_mk(mkfile=None)[source]

Furnsh the metakernel.

If mkfile is given, it is used. Otherwise the metakernel path is read from [mexpvat] metakernel in the .irfpyrc file. When the entry is not defined, or the file does not exist, a warning is logged and nothing is done.