Skip to main content

A supporting module for jplephem to handle data type 1

Project description


A supporting module for jplephem to handle data type 1 (Version 1.0.0)

This module computes positions and velocities of a celestial small body, from a NASA SPICE SPK ephemeris kernel file of data type 1 (Modified Difference Arrays). See

You can get SPK files for many solar system small bodies from HORIZONS system of NASA/JPL. See

This module reads SPK files of data type 1, one of the types of binary SPK file. At the point of Oct. 2018, HORIZONS system provides files of type 21 as binary SPK files by default. You can get type 1 binary SPK file for celestial small bodies through TELNET interface by answering back '1' for 'SPK file format'.

Modules required

  • jplephem (version 2.6 or later)
  • numpy


from spktype01 import SPKType01
kernel ='path')
position, velocity = kernel.compute_type01(center, target, jd)
print(kernel)     ---- this line prints information of all segments

    center - SPKID of central body (0 for SSB, 10 for Sun, etc.)
    target - SPKID of target body
    jd - time for computation (Julian date)
    position - a numpy array (x, y, z)
    velocity - a numpy array (xd, yd, zd)

Modification Log

1.0.0 October 9, 2018
  • close function is added
  • stable release
0.1.0 October 10, 2016
  • beta release

Project details

Download files

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

Files for spktype01, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size spktype01-1.0.0.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View
Filename, size spktype01-1.0.0-py3-none-any.whl (8.9 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page