Skip to main content

Scientific-grade astronomy routines

Project description

This version of PyEphem, named pyephem in the Python Package Index, is the version for the Python 2.x series. If you have gone ahead and transitioned to Python 3.0, then look for the package named ephem instead.

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.

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

Uploaded Source

Built Distributions

pyephem-3.7.5.1.win32-py2.7.exe (949.3 kB view details)

Uploaded Source

pyephem-3.7.5.1.win32-py2.6.exe (949.3 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyephem-3.7.5.1.tar.gz
Algorithm Hash digest
SHA256 f24f8fc23c493fb842b44defc539762351a1d46b85f3d4f5043a002066afb50d
MD5 4b08475dee615e5dfdc6fa7f66086944
BLAKE2b-256 f9624b486cec967357add6df1f24ef56e5bf0da5bc2110e4b0b3ce7264ce2ad7

See more details on using hashes here.

File details

Details for the file pyephem-3.7.5.1.win32-py2.7.exe.

File metadata

File hashes

Hashes for pyephem-3.7.5.1.win32-py2.7.exe
Algorithm Hash digest
SHA256 d4360e67ae8e6cc929f5cd2fece8445d50420d94e8f6f6a3056cfac281820184
MD5 a15e1050b00e23398a44f1d4295c774c
BLAKE2b-256 2b064beca5f92b7c46573dd0c1bbec7245798dc5d3cf3f6b9ddbf115a30481ac

See more details on using hashes here.

File details

Details for the file pyephem-3.7.5.1.win32-py2.6.exe.

File metadata

File hashes

Hashes for pyephem-3.7.5.1.win32-py2.6.exe
Algorithm Hash digest
SHA256 ba73a5243ae5e5b1ec5d83666e73e6a9ecd7ceeeebb5c8d8ad21dd1048d57351
MD5 09622a91b930aae1a7899bf0b73f9b9d
BLAKE2b-256 c320d72da9fdbfb05bc8a81b042cdfa2e45da93f3093e14aaeaf72593f76f147

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