SpiceKernelManager#

class stixcore.ephemeris.manager.SpiceKernelManager(path)[source]#

Bases: object

A class to manage Spice kernels in the local file system.

Attributes Summary

Methods Summary

get_latest([kerneltype, top_n])

Finds the latest version of the spice kernel.

get_latest_mk(*[, top_n])

get_latest_mk_and_pred(*[, top_n])

get_latest_mk_pred(*[, top_n])

get_mk_date(path)

get_mk_meta(path)

Attributes Documentation

MK_DATE_PATTERN = re.compile('solo_ANC_soc.*_(\\d{4})(\\d{2})(\\d{2})_.*.tm')#
OLDEST_MK_DATE = datetime.datetime(2019, 1, 1, 0, 0)#

Methods Documentation

get_latest(kerneltype=SpiceKernelType.MK, *, top_n=1)[source]#

Finds the latest version of the spice kernel.

Parameters:

kerneltype (SpiceKernelType, optional) – the spice kernel type to looking for, by default SpiceKernelType.MK

Returns:

Path – Path to the latest found spice kernel file of the given type.

get_latest_mk(*, top_n=1)[source]#
get_latest_mk_and_pred(*, top_n=1)[source]#
get_latest_mk_pred(*, top_n=1)[source]#
classmethod get_mk_date(path: Path)[source]#
classmethod get_mk_meta(path: Path)[source]#