SPICE (Spacecraft Planet Instrument C-matrix Events) is a NASA ancillary information system used to compute geometric information used in planning and analyzing science observations obtained from robotic spacecraft. It is also used in planning missions and conducting numerous engineering functions needed to carry out those missions.[1]
SPICE was developed at NASA's Navigation and Ancillary Information Facility (NAIF), located at the Jet Propulsion Laboratory.[2] It has become the de facto standard for handling much of the so-called observation geometry information on NASA's planetary missions, and it is now widely used in support of science data analysis on planetary missions of other space agencies as well. Some SPICE capabilities are also used on a variety of astrophysics, solar physics and earth science missions.
SPICE data files are usually referred to as "kernels." These files provide information such as spacecraft trajectory and orientation; target body ephemeris, size and shape; instrument field-of-view size, shape and orientation; specifications for reference frames; and tabulations of time system conversion coefficients.[3]
SPICE data are archived in a national archive center such as the NASA Planetary Data System archives.[4]
There are five major kernels and five other kernels.[5]
The SPICE system includes software referred to as The SPICE Toolkit, used for reading the SPICE data files and computing geometric parameters based on data from those files. These tools are provided as subroutine libraries in four programming languages: C, FORTRAN, IDL, MATLAB and Java Native Interface. Third parties offer Python and Ruby interfaces to the C-language Toolkit.[6] The Toolkits also include a number of utility and application programs. The SPICE Toolkits are available for most popular computing platforms, operating systems and compilers. Extensive documentation accompanies each Toolkit.
Those unable to write their own SPICE-based program may try using WebGeocalc, a browser interface to a SPICE-based geometry engine running on the NAIF server. Using WebGeocalc is much easier than writing your own program, but it still requires considerable knowledge about SPICE data and solar system geometry, and it doesn't offer the full range of computations available when using Toolkit software in your own program.[7]
The NAIF Group also offers a 3-D mission visualization program named SPICE-Enhanced Cosmographia. This program runs in the OSX, Windows and Linux environments. Visual representations of mission SPICE data are controlled using an assortment of menus and GUI controls. A scripting interface is also available.[8]
A set of tutorials is available to help users understand the SPICE data and software.[9] Some "open book" programming lessons useful in learning how to program using Toolkit subroutines are also available.
The SPICE data, Toolkit software, tutorials and programming lessons are all freely available from the NAIF website.[10] There are no licensing or export restrictions. Prospective users are cautioned that it takes some effort to learn to use this software: it is primarily provided for professionals in the space exploration business. Prospective users should carefully read the "Rules" page available at the NAIF website.