Installing Spice
In order to use some of the functionality in pandora-spacecraft, you will need to have CSPICE and spiceypy installed. This is primarily needed for people involved in maintaining this package or uploading new SPK/TLEs. Here are the instructions to do so on a Mac with an M1 chip.
You can find additional documentation on the NAIF website or look at their Toolkit installation slides.
-
Download the following files from the NAIF website.
This page also contains a helpful README which contains more information about the installation process. -
Place these files in your root directory on your computer.
-
In the terminal, navigate to your root directory and run
The scriptimportCSpice.cshwill uncompress and untar the toolkit and, on platforms where NAIF anticipates that it is necessary, compile and link all source code products. It should create a cspice/ directory in the location that you placed the original files. -
Open your .zshrc file and add the line:
Adjust as needed to reflect the path where your cspice/ directory lives. -
Open a fresh terminal and You can also check that cspice itself is working with the command
-
Install spiceypy in the python environment of your choosing. e.g.
-
Check that spiceypy is finding cspice correctly with
If this fails, you have likely inputed the wrong path in your .zshrc file. -
You'll also need to install the utility
ckslicer, which can be downloaded from the NAIF utilities page. Download the file by clicking "ckslicer" in the table, then place the file incspice/exe/.NOTE: If you are on a government computer, you will need elevated privileges on your machine in order to install this executable. You may need to submit a NAMS request to complete this step.
8a. Place the
ckslicerfile in incspice/exe/. Run chmod to make the downladed file executable.8b. Navigate to your cspice directory and run
8c. At this point, check if you are able to run the commands in
maintainers.md. If you are--great, you're all done! If not (especially if you are working on a government computer), you may need to check that a) you have elevated privileges on your computer and b) whether there is a software quarantine onckslicer. The first must be resolved by submitting a NAMS request, and the latter can be resolved with a to visit the IT department. Once you have cleared up those issues, run step 8b again and you should be good to go.