Skip to main content

A supporting module for jplephem to handle data type 21

Project description

spktype21

A supporting module for jplephem to handle data type 21 (Version 0.1.0)

This module computes positions and velocities of a celestial small body, from a NASA SPICE SPK ephemeris kernel file of data type 21 (Extended Modified Difference Arrays). See http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/req/spk.html

You can get SPK files for many solar system small bodies from HORIZONS system of NASA/JPL. See https://ssd.jpl.nasa.gov/?horizons

This module reads SPK files of data type 21, 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 21 binary SPK file for celestial small bodies through TELNET interface by answering back 'B' for 'SPK file format'. Also you can get type 21 binary SPK file from: https://ssd.jpl.nasa.gov/x/spk.html

Modules required

  • jplephem (version 2.6 or later)
  • numpy

Usage

from spktype21 import SPKType21
kernel = SPKType21.open('path')
position, velocity = kernel.compute_type21(center, target, jd)
print(kernel)     ---- this line prints information of all segments
kernel.close()

where:
    path - path to the SPK file
    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

0.1.0 October 15, 2018
  • 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.

Source Distribution

spktype21-0.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

spktype21-0.1.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file spktype21-0.1.0.tar.gz.

File metadata

  • Download URL: spktype21-0.1.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.9.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.1

File hashes

Hashes for spktype21-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e7fbeb15a13493eb34b5ea5ab3c4d57c7beb239d66916ca522cea1da9d22356b
MD5 7010e3664cda37a064965d16057317dc
BLAKE2b-256 081f48d9d9e41c092b86e62facc63fc0d35f1b1a4556f86b145b86eda58ec090

See more details on using hashes here.

File details

Details for the file spktype21-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: spktype21-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.9.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.1

File hashes

Hashes for spktype21-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 440db3b86492e19095738c9676910504729f604318040808ec37582c3a06bbe4
MD5 9119832747d5f999cec9e4a7a0e1547c
BLAKE2b-256 56a0225c807eebf51abf8a2bece8bc92feaa029d4dca822e704f5fdfa39ac6b2

See more details on using hashes here.

Supported by

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