Skip to main content

Compute positions of the planets and stars

Project description

http://bottlepy.org/docs/dev/_static/Gittip.png https://travis-ci.org/brandon-rhodes/pyephem.png

PyEphem provides an ephem Python package for performing high-precision astronomy computations. The underlying numeric routines are coded in C and are the same ones that drive the popular XEphem astronomy application, whose author, Elwood Charles Downey, generously gave permission for their use in PyEphem. The name ephem is short for the word ephemeris, which is the traditional term for a table giving the position of a planet, asteroid, or comet for a series of dates.

The PyEphem web site offers documentation and also links to the project bug tracker, user support forum, and source code repository. If you have a C compiler and the pip Python installer tool on your system, then installing PyEphem should be as easy as:

pip install ephem

There are also Windows installers in the downloads section below.

The design of PyEphem emphasizes convenience and ease of use. Both celestial bodies and the observer’s location on Earth are represented by Python objects, while dates and angles automatically print themselves in standard astronomical formats:

>>> import ephem
>>> mars = ephem.Mars()
>>> mars.compute('2008/1/1')
>>> print mars.ra, mars.dec
5:59:27.35 26:56:27.4

The documentation includes both a Quick Reference and a Tutorial, which are included in text files within the module itself as well as being available on the PyEphem web site.

The features provided by PyEphem include:

  • Find where a planet, comet, or asteroid is in the sky.

    • High-precision orbital routines are provdied for the Moon, Sun, planets, and the major planet moons.

    • The user can supply the orbital elements of a comet, asteroid, or Earth-orbiting satellite, and have its location computed.

    • The positions of 94 bright stars come built-in, and the user can create further fixed objects as needed for their calculations.

  • Determine where in the sky an object appears for a particular observer.

    • The user can supply the longitude, latitude, and altitude of the location from which they will be observing.

    • For convenience, a small database of longitudes and latitudes for 122 world cities is included.

    • For specified weather conditions (temperature and pressure), PyEphem will compensate for atmospheric refraction by adjusting the positions of bodies near the horizon.

  • Compute when a body will rise, transit overhead, and set from a particular location.

  • Parse and use orbital data in either the traditional XEphem file format, or the standard TLE format used for tracking Earth-orbiting satellites.

  • Determine the dates of the equinoxes and solstices.

  • Compute the dates of the various phases of the Moon.

  • Convert from the Greenwich Time (more precisely, Ephemeris Time) which PyEphem uses to the local time of the user.

  • Convert positions between the equatorial, ecliptic, and galactic coordinate systems.

  • Determine on which page of the Uranometria or the Millennium Star Atlas a particular star should appear.

  • Return the Julian Date corresponding to any calendar date.

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

pyephem-3.7.6.0.tar.gz (739.6 kB view details)

Uploaded Source

Built Distributions

pyephem-3.7.6.0-cp34-none-win_amd64.whl (794.7 kB view details)

Uploaded CPython 3.4 Windows x86-64

pyephem-3.7.6.0-cp34-none-win32.whl (771.1 kB view details)

Uploaded CPython 3.4 Windows x86

pyephem-3.7.6.0-cp33-none-win_amd64.whl (794.7 kB view details)

Uploaded CPython 3.3 Windows x86-64

pyephem-3.7.6.0-cp33-none-win32.whl (771.2 kB view details)

Uploaded CPython 3.3 Windows x86

pyephem-3.7.6.0-cp27-none-win_amd64.whl (795.0 kB view details)

Uploaded CPython 2.7 Windows x86-64

pyephem-3.7.6.0-cp27-none-win32.whl (770.9 kB view details)

Uploaded CPython 2.7 Windows x86

pyephem-3.7.6.0-cp26-none-win_amd64.whl (795.3 kB view details)

Uploaded CPython 2.6 Windows x86-64

pyephem-3.7.6.0-cp26-none-win32.whl (771.2 kB view details)

Uploaded CPython 2.6 Windows x86

File details

Details for the file pyephem-3.7.6.0.tar.gz.

File metadata

  • Download URL: pyephem-3.7.6.0.tar.gz
  • Upload date:
  • Size: 739.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyephem-3.7.6.0.tar.gz
Algorithm Hash digest
SHA256 143146da32a07a4cf9725b5656ba095d24978c22a0363414203e72c39bae52bd
MD5 3d6c19d92a2a80fef87770f3e2007453
BLAKE2b-256 57a870bb00ea0b71680afdc89779fbbb58d53c9a4da1818d5ef5359b179b46d1

See more details on using hashes here.

File details

Details for the file pyephem-3.7.6.0-cp34-none-win_amd64.whl.

File metadata

File hashes

Hashes for pyephem-3.7.6.0-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 395b44e3733f1f389dff44da4a94de2e350b7331ac5a65df04f9e51a4421be9a
MD5 ee2b52b8d36c8bb4221852b87c20e1d4
BLAKE2b-256 5bfb2761580f2f8e513e1484c87b8327d46f253344941f079b251fd366134651

See more details on using hashes here.

File details

Details for the file pyephem-3.7.6.0-cp34-none-win32.whl.

File metadata

File hashes

Hashes for pyephem-3.7.6.0-cp34-none-win32.whl
Algorithm Hash digest
SHA256 cf351a7a71fbd9abfd8ed8fbeb725989e01defd37b640f0075b27dbcb9b44fe4
MD5 394f9d8d80c16579b90ff5efc4c5fdb8
BLAKE2b-256 d7e713853ec413dcfd3cfb6b5e3cb84374474465912a0514613b6b16072bedae

See more details on using hashes here.

File details

Details for the file pyephem-3.7.6.0-cp33-none-win_amd64.whl.

File metadata

File hashes

Hashes for pyephem-3.7.6.0-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 9d4a3511078ef42c72deddf9c3672b6d7d826a7b9c3017d92d21ce69109f29d4
MD5 f7d80ace3cc45864c66d9eea90df4ea3
BLAKE2b-256 d6fd95fbf58a9936a2a8d0260973c55921d0f9e06da7517261846a01eb397e6e

See more details on using hashes here.

File details

Details for the file pyephem-3.7.6.0-cp33-none-win32.whl.

File metadata

File hashes

Hashes for pyephem-3.7.6.0-cp33-none-win32.whl
Algorithm Hash digest
SHA256 ff202296df277adb2edc06d8cb682d7708d88fab1296471edd965a678b66a6bc
MD5 d374f30b39bdea48e17dde89e3be7ba8
BLAKE2b-256 9ea9f5e36647d960fca3a78fa3386563d9c9840d6c94763a155bbacc0e84462b

See more details on using hashes here.

File details

Details for the file pyephem-3.7.6.0-cp27-none-win_amd64.whl.

File metadata

File hashes

Hashes for pyephem-3.7.6.0-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 12cbe62c8ebabb00bcceb8cfa0559c2d6166c6491ee5b4b42719cb45602f818b
MD5 2d00f6d107d8173361250322a12d9e92
BLAKE2b-256 1a4467b7f5dd8d55e845e93eb76c400bfa4b58c80871ad09d7f55ae2b1cfb794

See more details on using hashes here.

File details

Details for the file pyephem-3.7.6.0-cp27-none-win32.whl.

File metadata

File hashes

Hashes for pyephem-3.7.6.0-cp27-none-win32.whl
Algorithm Hash digest
SHA256 cb53d475eac7a70d0179318e8c06f512b59d8d6757cfbd7111a9af18c371220f
MD5 b981b24bba9842ff3c03f700fbf0c90f
BLAKE2b-256 eaa4bfda15486f9243fc8f42f567be5503dd8a2d0738e86553ae859abbe2ca4e

See more details on using hashes here.

File details

Details for the file pyephem-3.7.6.0-cp26-none-win_amd64.whl.

File metadata

File hashes

Hashes for pyephem-3.7.6.0-cp26-none-win_amd64.whl
Algorithm Hash digest
SHA256 05aeb35369c99081a5b8691b9b36024f6c615653a19cb46e1f0f787dcdfca216
MD5 c24d4948ba0edb3b1e949eef6cf94d2c
BLAKE2b-256 51b28a17adbb1676953e4bdd126eced38c6bd2991449e6883cf0165522fcc40a

See more details on using hashes here.

File details

Details for the file pyephem-3.7.6.0-cp26-none-win32.whl.

File metadata

File hashes

Hashes for pyephem-3.7.6.0-cp26-none-win32.whl
Algorithm Hash digest
SHA256 4b24d8e4ce469355b778024a9e275fe718cb8a1c0f6cff1ca7739ec5294a8c33
MD5 8dda4bba27923cb0f3822d79a7351bd5
BLAKE2b-256 7b056f8ee279667b82231f78344700adaa9c6ed035fa6b31c9b4e3cc8a962609

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 Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page