A Python Wrapper for the NAIF CSPICE Toolkit
Project description
SpiceyPy is a Python wrapper for the NAIF C SPICE Toolkit (N66), written using ctypes.
Continuous Integration |
Code Coverage |
Docs |
Chat |
Citation |
Code Style |
---|---|---|---|---|---|
Introduction
SpiceyPy is a python wrapper for the SPICE Toolkit. SPICE is an essential tool for scientists and engineers alike in the planetary science field for Solar System Geometry. Please visit the NAIF website for more details about SPICE.
IMPORTANT: I have no current affiliation with NASA, NAIF, or JPL. The code is provided “as is”, use at your own risk. However, the NAIF now distributes python “lessons” that use SpiceyPy as the python to spice interface.
Citing SpiceyPy
If you are publishing work that uses SpiceyPy, please cite SpiceyPy and the SPICE toolkit.
- SpiceyPy can be cited using the JOSS DOI (https://doi.org/10.21105/joss.02050) or with the following:
Annex et al., (2020). SpiceyPy: a Pythonic Wrapper for the SPICE Toolkit. Journal of Open Source Software, 5(46), 2050, https://doi.org/10.21105/joss.02050
- Instructions for how to cite the SPICE Toolkit are available on the NAIF website:
- To cite information about SpiceyPy usage statistics, please cite my 2017 and or 2019 abstracts as appropriate below:
2017 abstract: https://ui.adsabs.harvard.edu/abs/2017LPICo1986.7081A/abstract.
2019 abstract: https://ui.adsabs.harvard.edu/abs/2019LPICo2151.7043A/abstract.
Installation
PyPI |
Conda Forge |
---|---|
SpiceyPy can be installed using pip by running: pip install spiceypy
Anaconda users should use the conda-forge distribution of SpiceyPy by running:
conda config --add channels conda-forge
conda install spiceypy
If you wish to install spiceypy from source first download or clone the project. Then run python setup.py install. To uninstall run pip uninstall spiceypy.
Documentation
The SpiceyPy docs are available at: spiceypy.readthedocs.org. The documentation for SpiceyPy is intentionally abridged so as to utilize the excellent documentation provided by the NAIF. Please refer to C and IDL documentation available on the NAIF website for in-depth explanations. Each function docstring has a link to the corresponding C function in the NAIF docs at a minimum. SpiceyPy documentation contains the NAIF authored Lessons for step-by-step tutorials with code examples.
How to Help
Feedback is always welcomed, if you discover that a function is not working as expected, submit an issue detailing how to reproduce the problem. If you utilize SpiceyPy frequently please consider contributing to the project by citing me using the zenodo DOI above.
Known Working Environments:
SpicyPy is compatible with modern Linux, Mac, and Windows environments. Since the package is a wrapper, any environment not supported by the NAIF is similarly not supported by SpiceyPy. If you run into issues with your system please submit an issue with details. Please note that support for Python minor versions are generally phased out as newer versions are released.
OS: OS X, Linux, Windows
CPU: 64bit only!
Python 3.6, 3.7, 3.8
Support for Python 2.7 ended with version 2.3.2 January 2020 *
Acknowledgements
DaRasch wrote spiceminer, which I looked at to get SpiceCells working, thanks!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for spiceypy-4.0.0-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfdc5e39005baf62a9f2b9153be0845850b8743d81487c87178a26857fe6528a |
|
MD5 | 246d5af8354b6265d1436c88a7d67f7a |
|
BLAKE2b-256 | 9078de3b96b2ee7f7187e4268b4569a23d30a29877383b35fae0af7858f9de3c |
Hashes for spiceypy-4.0.0-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7af683e8adb70dc1d57acf6f1432718f67a50713a006c36f38c7b5022f8d8f70 |
|
MD5 | 3beb57e6780b2554aea1916b7a3b1627 |
|
BLAKE2b-256 | 606c365b9a672395d9ee511b309161f3d5b063b9b8e12d2de769b14e8c9bef05 |
Hashes for spiceypy-4.0.0-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 002857872d906300dede32a710a6e6a37dc821a086a530b3f19bcb45f1415b35 |
|
MD5 | 131de955b70a52e0856aa40a283237e0 |
|
BLAKE2b-256 | 6c9501f8925f5d221f7f4e01da7adef6709e8ddec13d77d9f0fd9e6f36cd5b76 |
Hashes for spiceypy-4.0.0-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebc6e4451ef49c06b9c7459644fad74f7b3dec1ea5d59b040f4307424909a831 |
|
MD5 | 60860ef3389e1d6150365e64b0785bc1 |
|
BLAKE2b-256 | 5fc5d117ac8e2e6476921a81d18f372dce688f38dd7218729b20334cc3a7155c |