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), compatible with Python 2 and 3, written using ctypes.

Continuous Integration

Code Coverage

Docs

Chat

Citation

Travis Build Status Windows Build Status

Coverage Status

Documentation Status

Join the chat

Citation

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.

Installation

First install the dependencies (numpy, six, pytest) for the project. Then run pip install spiceypy to install from pypi.

SpiceyPy is also available through conda by either first installing pip via conda or by running conda install -c https://conda.anaconda.org/andrewannex 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.

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.

Citing SpiceyPy

If the use of SpiceyPy is used in a publication, please consider citing SpiceyPy and the SPICE toolkit. The citation information for SPICE can be found on the NAIF website. To cite SpiceyPy please utilize the zenodo DOI badge at the top of this readme.

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 & 32bit

  • Python 2.7, 3.3, 3.4, 3.5, 3.6

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-2.1.2.tar.gz (116.0 kB view details)

Uploaded Source

Built Distributions

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

spiceypy-2.1.2-cp37-cp37m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.7mWindows x86-64

spiceypy-2.1.2-cp36-cp36m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.6mWindows x86-64

spiceypy-2.1.2-cp35-cp35m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.5mWindows x86-64

spiceypy-2.1.2-cp27-cp27m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 2.7mWindows x86-64

File details

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

File metadata

  • Download URL: spiceypy-2.1.2.tar.gz
  • Upload date:
  • Size: 116.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for spiceypy-2.1.2.tar.gz
Algorithm Hash digest
SHA256 0d7e595853b8de5e95ab356a57ab36048f67064c3d629cecb57182382f953783
MD5 a5261948fcfcfc6271c952b8abb971ff
BLAKE2b-256 aa75a10785f356f58c784979027b474713951aebc95be228e932b73d021009bf

See more details on using hashes here.

File details

Details for the file spiceypy-2.1.2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: spiceypy-2.1.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0

File hashes

Hashes for spiceypy-2.1.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 22bec39586a52ee0d2605d83d86d849e588d684e26a7171351c3c0f3c0641e1e
MD5 11f13a86b4054d6c7b43a898503364de
BLAKE2b-256 7be615091260bd44f48b8103cc8dd61a0fdd254cbdab818438984f641b7a22cf

See more details on using hashes here.

File details

Details for the file spiceypy-2.1.2-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for spiceypy-2.1.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 0c217691fc1552bb3256f645a045cb38756b3278b70a3a54530c521731ba6fb1
MD5 ece8b66cd5784295e80b7b6dc3478c87
BLAKE2b-256 8c11eaef0ccbb7d8b99524cb3f54ba93ea7d4c65aac08a1552ca31d3c0e63889

See more details on using hashes here.

File details

Details for the file spiceypy-2.1.2-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for spiceypy-2.1.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 c4a3f236c36be1800a3695abd6447587eda6751b8610a97c4ae03aca3073afcb
MD5 bcace7094955dd180bdd239d505a13e0
BLAKE2b-256 7c33cae99b1fbe9a01b581e348dcb83461dc534a97ce918abec9aafc6fdd2a13

See more details on using hashes here.

File details

Details for the file spiceypy-2.1.2-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for spiceypy-2.1.2-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 ca2fd3010ee02e206e9e73bd5965987ab450662acca5f14e8914f5aa01272ea4
MD5 82968cc09b0fa808ba402300bb6f9f39
BLAKE2b-256 994f0a33329f8944712e2e7fd16d3efba3eb83b19f3aea162b04f20d8a96c017

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