6
SPICE system and their executable modules are located under the exe subdirectory.
They are discussed briefly in the TOOLS section below and are documented in the
spacit.ug and convrt.ug User’s Guide documents that come with SPICE.
Kernels
The data files (both binary and text) that are used by the SPICE system are called
kernels. The binary kernels are the SP-kernels (SPK), a few PC-kernels (PCK), C-
kernels (CK) and some E-kernels (EK). The binary kernels are often delivered in the
SPICE “transfer format” which is portable between all computers. You will need to
convert such files to your computer’s binary format using either tobin or spacit utility
program delivered with the toolkit. There are also a handful of text kernels: Spacecraft
Clock kernels (SCLK), Leapseconds kernel (LSK), most Physical Constants kernels
(PCK), Instrument parameter kernels (IK) and some spacecraft Events kernels (EK).
These can be used as received — no conversion is needed.
Both types of kernels (text and binary) must be read to be useful. The SPICE system
provides software for reading (and in some cases writing) these kernels. You can use
these kernels without ever concerning yourself with the details of their format.
To make the information in kernels available to your software you will need to load
them. This lets the SPICE system know where to find these data. Loading text kernels
is discussed in the document kernels.req. Loading SP-kernels is discussed in the
document spk.req. Loading C-kernels is discussed in the document ck.req. Loading
PC-kernels is discussed in the document pck.req. Moreover examples of loading
kernels are provided in the cookbook programs that are provided with SPICE (see the
section on Example Programs below). Kernels of all types need to be loaded only once
in your program — don’t put the load statement in a loop.
Creating or Modifying Kernels
Most SPICE user’s will not need to create or modify kernels. Moreover, of the users
who need to create or modify kernels, most will only need to deal with one of the
various text kernels. Because these are text files they can be created and modified with
any text editor. Although the format of these files is fairly easy to deduce, we
recommend that you consult the document kernel.req before you attempt to edit a text
kernel for the first time.
Some of SPICE users will want to create binary kernels. This task requires a deeper
understanding of the SPICE kernel format and kernel readers. If you need to create
SPICE binary kernels we recommend that you read all of the material in the one of
spk.req, ck.req, pck.req or ek.req that is pertinent to your task. In addition, if you are
producing these data products in an official project capacity we encourage you to
contact NAIF to discuss any issues that might be relevant to your task of producing
binary kernels.
Obtaining Kernels
Since you will probably not be producing your own kernels, you will need to obtain
them from someplace. Usually, you will receive them from a project database or
project data management team. Once a mission is complete the kernels should be