Skip to main content

Scientific-grade astronomy routines

Project description

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

Uploaded Source

Built Distributions

pyephem-3.7.3.1.win32-py2.5.exe (778.1 kB view details)

Uploaded Source

pyephem-3.7.3.1.win32-py2.4.exe (778.1 kB view details)

Uploaded Source

pyephem-3.7.3.1-py2.5-win32.egg (747.8 kB view details)

Uploaded Source

pyephem-3.7.3.1-py2.5-linux-i686.egg (877.2 kB view details)

Uploaded Source

pyephem-3.7.3.1-py2.4-win32.egg (747.9 kB view details)

Uploaded Source

pyephem-3.7.3.1-py2.4-linux-i686.egg (878.0 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyephem-3.7.3.1.tar.gz
Algorithm Hash digest
SHA256 f506f4cf997dc3fbd26770ecebbaf522267b8e3d95468f960d6b4d382b446f04
MD5 c49b5b0973d172526c70e196cf382565
BLAKE2b-256 33755f2d5e17d81d268efcb5e3c73a06b63dac1ca8516c79e6df004394f8a5e7

See more details on using hashes here.

File details

Details for the file pyephem-3.7.3.1.win32-py2.5.exe.

File metadata

File hashes

Hashes for pyephem-3.7.3.1.win32-py2.5.exe
Algorithm Hash digest
SHA256 fb2d1c25e36cbbf42485d7b5e8a29740f20f5273f33a3a6369cf3018d24b11db
MD5 df6559f7e35e362ba2696f59a9a2b6f3
BLAKE2b-256 63b13996112dac43b7ca5017962b558ad1c830b2d94db400c14b46b216aae8d1

See more details on using hashes here.

File details

Details for the file pyephem-3.7.3.1.win32-py2.4.exe.

File metadata

File hashes

Hashes for pyephem-3.7.3.1.win32-py2.4.exe
Algorithm Hash digest
SHA256 e5a364a3905ca47c9ce7c2d557411d0daa372995bc81e6b115e28b7f4f1d321c
MD5 6e57a99a6ac9013bfcbf127d0c9f2209
BLAKE2b-256 318a8d95471d8d8c3a0c7311f811cf58feb55c7e071e771387bca1119df447fc

See more details on using hashes here.

File details

Details for the file pyephem-3.7.3.1-py2.5-win32.egg.

File metadata

File hashes

Hashes for pyephem-3.7.3.1-py2.5-win32.egg
Algorithm Hash digest
SHA256 b806a802b047b40623293c33be6c7e37ec098bbbbb69783c84e85507a7917303
MD5 c18158facb6f5e8f939cbb69a1e275c6
BLAKE2b-256 28e0f61b8d0d5e21c246a90739954157d423fb88816a5dc829b33b59ef81a115

See more details on using hashes here.

File details

Details for the file pyephem-3.7.3.1-py2.5-linux-i686.egg.

File metadata

File hashes

Hashes for pyephem-3.7.3.1-py2.5-linux-i686.egg
Algorithm Hash digest
SHA256 6e216388373947558779dbb5a9675f0c298272d620df856215d5afd8112bd01d
MD5 66d011cf98482d951f55d1f89d50a846
BLAKE2b-256 a7a74ddde15c68288ddc480203136b5971b9bc87a8a1496bf6493be700737871

See more details on using hashes here.

File details

Details for the file pyephem-3.7.3.1-py2.4-win32.egg.

File metadata

File hashes

Hashes for pyephem-3.7.3.1-py2.4-win32.egg
Algorithm Hash digest
SHA256 88bee4aa8b460dfbed1a2431b3a07b7546ba5d4a5336057ebd7bb1e438872ca2
MD5 74c201c4737cbc91be6bd694c101f7d0
BLAKE2b-256 10b2ba2c05946552053258ef6f5e5f9e55223e844da49a652d2162185840e8ef

See more details on using hashes here.

File details

Details for the file pyephem-3.7.3.1-py2.4-linux-i686.egg.

File metadata

File hashes

Hashes for pyephem-3.7.3.1-py2.4-linux-i686.egg
Algorithm Hash digest
SHA256 50f2387aeb1fa78528529c894fefdd04c0a1315f315b2af90f876bcded186ff0
MD5 5517d83445bc7534a315e073e02f6b26
BLAKE2b-256 1435aaec978ad99a47c87561494b726332e6470a5013b0761e20d8243429be41

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