Skip to main content

Package supporting JPL planetary ephemeris computations.

Project description

This package lets you consult a Jet Propulsion Laboratory ephemeris for the position and velocity of one of the planets, or the magnitude and rate-of-change of the Earth’s nutation or the Moon’s libration. To determine the position of Mars using the DE421 ephemeris, for example, you would start by installing two packages:

pip install jplephem
pip install de421

Then you can compute positions using a script like this:

import de421
from jplephem import Ephemeris

eph = Ephemeris(de421)
jd = 2444391.5  # 1980.06.01
print eph.compute('mars', jd)

The result will be a 6-element NumPy array providing the object’s position in the Solar System, given in kilometers along the axes of the ICRF (a more precise reference frame than J2000 but oriented in the same direction), as well as its velocity along those axes in kilometers per second:

(x, y, z, xrate, yrate, zrate)

The string that you provide to e.compute(), like mars in the example above, actually names the data file that you want loaded and used from the ephemeris package. To see the full list of data files that an ephemeris provides, you can simply list the files in its directory. Most of the ephemerides provide thirteen data sets:

earthmoon   mercury    pluto   venus
jupiter     moon       saturn
librations  neptune    sun
mars        nutations  uranus

The ephemerides currently available as Python packages (the following links explain the differences between them) are:

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

jplephem-0.1.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file jplephem-0.1.tar.gz.

File metadata

  • Download URL: jplephem-0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jplephem-0.1.tar.gz
Algorithm Hash digest
SHA256 154f894b18f770759a0ef63594fbc43c0664cf11eb376bb56494d84169330cf0
MD5 a68973076251c407666b67e1a59bf411
BLAKE2b-256 01a310917715ffc512043e8221083c800f7fc9ecf7b26291c32b60f401f6a6b1

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