initialize#

sunpy.coordinates.spice.initialize(kernels)[source]#

Load one more more SPICE kernels and create corresponding frame classes.

Parameters:

kernels (str, list of str) – One or more SPICE kernel files

Notes

If a kernel file is a meta-kernel, make sure that the relative paths therein are correct for the current working directory, which may not be the same as the location of the meta-kernel file.

This function has simple support for being called multiple times in a session in order to load multiple sets of kernels. However, there may be unexpected behavior if this function is called after the frame classes start being used.

Examples

Coordinates computations using SPICE kernels

Coordinates computations using SPICE kernels