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

Uploaded Source

Built Distributions

pyephem-3.7.2.4.win32-py2.5.exe (777.1 kB view details)

Uploaded Source

pyephem-3.7.2.4.win32-py2.4.exe (777.2 kB view details)

Uploaded Source

pyephem-3.7.2.4-py2.5-win32.egg (746.2 kB view details)

Uploaded Source

pyephem-3.7.2.4-py2.5-linux-i686.egg (875.5 kB view details)

Uploaded Source

pyephem-3.7.2.4-py2.4-win32.egg (746.3 kB view details)

Uploaded Source

pyephem-3.7.2.4-py2.4-linux-i686.egg (876.3 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyephem-3.7.2.4.tar.gz
Algorithm Hash digest
SHA256 0139978c4a9ff5aabb1e126b51ba070cbb106b99ece143643acb64d46548d355
MD5 cb2932f8d9074a8a90e2af869940a0ee
BLAKE2b-256 6ceef509669a4b58898135f80e77ae1408d91628cd34f98eb04e6b3f1e990622

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.2.4.win32-py2.5.exe
Algorithm Hash digest
SHA256 86aad241898e849b31de5b82c676817b6fef4048e17e6d635920afd143128a89
MD5 ba3b7fae6e85a784ce0f51285fb50f03
BLAKE2b-256 bf6a919e71ae2fb896133b36b95ef8f9cdccb000ce3befeab0f554af9fca03d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.2.4.win32-py2.4.exe
Algorithm Hash digest
SHA256 22af5b6a1489c0d8fb88053453120e741f0dd5a08da89e0ceb58b409ccd6d91c
MD5 a56315f8742222da4eb054ea7e05df9f
BLAKE2b-256 bc67e510d062f54154b9d2a1c40443f5664fdd95142a4498e04ddeb60e848924

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.2.4-py2.5-win32.egg
Algorithm Hash digest
SHA256 f4d5845a1ad9f2c83ec886f38bdf883461b567fde5939e3ed66f74a2c4fda5f9
MD5 391723b39ba4efd2c3394fdc3abe21df
BLAKE2b-256 31fd5d1a277203118345df67ac44f8927243141096007570c375c5d607cf73ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.2.4-py2.5-linux-i686.egg
Algorithm Hash digest
SHA256 cbdaf77c0846326e24c17c7197006dd5caad8e28dbbf586fe28a95a470b38331
MD5 0c603cdf3e22d597ec8d7e533eb6dfd4
BLAKE2b-256 cafeecb7b22d37304b659938d1524523a622bcbb50ab2226caf58d5de2b592b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.2.4-py2.4-win32.egg
Algorithm Hash digest
SHA256 17f4ff3292770327443645ab2bda46ee153fddcb904ab2ac6f490b0140fd74e5
MD5 fd011bfc6bb2389d8f662a403df74a07
BLAKE2b-256 471a3625c32ab9ba94a13a1eb0e8176e315121b42a20823934dcb7d27b995294

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.2.4-py2.4-linux-i686.egg
Algorithm Hash digest
SHA256 1aa00b603510def67bd2ac12bb92777c6b1ddb111b1f6c5efaf5e6b45294afe6
MD5 e43338752961812bf842fe87c3d5d6d8
BLAKE2b-256 b8f265248e3b137a2a1f812f10d99d7ce4b8f58417d78bb85875607692ffc00f

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