Skip to main content

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

Github - Build Status

Codecov - Test Coverage

Readthedocs - Documentation

Gitter - Chat room

Citation Information: Journal of Open Source Software

Code Style - Black

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:

https://naif.jpl.nasa.gov/naif/credit.html.

To cite information about SpiceyPy usage statistics, please cite my 2017 and or 2019 abstracts as appropriate below:
  1. 2017 abstract: https://ui.adsabs.harvard.edu/abs/2017LPICo1986.7081A/abstract.

  2. 2019 abstract: https://ui.adsabs.harvard.edu/abs/2019LPICo2151.7043A/abstract.

Installation

PyPI

Conda Forge

PyPI - python package index

Conda - conda-forge feedstock for SpiceyPy

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, 3.9

  • Experimental ARM support for Linux-aarch64 & osx-arm64 via conda-forge

  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spiceypy-4.0.2.tar.gz (268.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

spiceypy-4.0.2-cp39-none-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.9Windows x86-64

spiceypy-4.0.2-cp38-none-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.8Windows x86-64

spiceypy-4.0.2-cp37-none-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.7Windows x86-64

spiceypy-4.0.2-cp36-none-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.6Windows x86-64

File details

Details for the file spiceypy-4.0.2.tar.gz.

File metadata

  • Download URL: spiceypy-4.0.2.tar.gz
  • Upload date:
  • Size: 268.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11

File hashes

Hashes for spiceypy-4.0.2.tar.gz
Algorithm Hash digest
SHA256 1e7d1cdd36b620829c21233c8b89252fe5d684a0414fdc7da53a4481781a755b
MD5 46b0ab7f877ac7d055a265b7ee1132a7
BLAKE2b-256 f8a5a6ea96ee6c0efba08bc77609dfccbd9fcc4f177621695b9bf94b91de8c2b

See more details on using hashes here.

File details

Details for the file spiceypy-4.0.2-cp39-none-win_amd64.whl.

File metadata

  • Download URL: spiceypy-4.0.2-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for spiceypy-4.0.2-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 49ad4151cc10bb727c47916a975dd476d474f392cff4bd6e1b1df2378e34cf10
MD5 1e389836f171052c1c1fcc920f72d264
BLAKE2b-256 e54b3e014552b89e5a4262e5ab2a6649180ba2a5355e4cc44a8ec6dad3ff3c5b

See more details on using hashes here.

File details

Details for the file spiceypy-4.0.2-cp38-none-win_amd64.whl.

File metadata

  • Download URL: spiceypy-4.0.2-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for spiceypy-4.0.2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 f61cfd6031541b22aa65f9c8579a7b4458d49d6aa2c1ead068951f0771bae57e
MD5 3b69ca62bea279c00fea5257c1ae277e
BLAKE2b-256 394e45d96143b6047376ab80abb0da6a379eddc0d4c40e3c6fda7918a80ed2a0

See more details on using hashes here.

File details

Details for the file spiceypy-4.0.2-cp37-none-win_amd64.whl.

File metadata

  • Download URL: spiceypy-4.0.2-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.9

File hashes

Hashes for spiceypy-4.0.2-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 9dbc04ed46a70a3a7846ecbeba6c39d09914e66d4e40d661a10a89b3d81b18f3
MD5 bd71b175118f30a37fb66881549a7930
BLAKE2b-256 88d75db42cfd5bac6edaac6d79d331b63873db1518a94082521e83cbae73e816

See more details on using hashes here.

File details

Details for the file spiceypy-4.0.2-cp36-none-win_amd64.whl.

File metadata

  • Download URL: spiceypy-4.0.2-cp36-none-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.6, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.8

File hashes

Hashes for spiceypy-4.0.2-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 8ed8ffc57bacfe8ded1416d4c645d6d79a8e5076eca96ae476986709046e023e
MD5 676d4657074814416d24835ba583f89f
BLAKE2b-256 c11b93e2bd4fb078e263b1ef94c5840a59dc5ae84b8f7d9b76217f1ab937c05f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page