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

Uploaded Source

Built Distributions

pyephem-3.7.2.3.win32-py2.5.exe (334.4 kB view details)

Uploaded Source

pyephem-3.7.2.3.win32-py2.4.exe (334.4 kB view details)

Uploaded Source

pyephem-3.7.2.3-py2.5-win32.egg (301.9 kB view details)

Uploaded Source

pyephem-3.7.2.3-py2.5-linux-i686.egg (438.1 kB view details)

Uploaded Source

pyephem-3.7.2.3-py2.4-win32.egg (302.0 kB view details)

Uploaded Source

pyephem-3.7.2.3-py2.4-linux-i686.egg (431.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyephem-3.7.2.3.tar.gz
Algorithm Hash digest
SHA256 483e9f4384a2297230aef3015debaa1461bb17dfb6f20d4384efcad537baa375
MD5 26aec22459eb0dab2632dd6622fd60c6
BLAKE2b-256 f506ee39368de2725baafa50acb7741a76d8afc7541da8dc4c42999f11e28761

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.2.3.win32-py2.5.exe
Algorithm Hash digest
SHA256 2c0ed6d9fd9b346207a9e47fb4ce1b90b1d34ec9e01fee643219babdbf716e2a
MD5 4c9ca36448caa1eaad4d20a0650a5e41
BLAKE2b-256 7dd2c17dc61e2b3d9ef81a0a9a46f56484abbe17a7063ab0dc80ed3e73818090

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.2.3.win32-py2.4.exe
Algorithm Hash digest
SHA256 a3ff385e802b18d35d4c74d9e3f91e07856c52355ced2e32b0193e08d8016a4f
MD5 605a914b29c07049e1d9e0c23e6d42c1
BLAKE2b-256 a530e819413d06f12d7eb40a053ca65ec10ca5949e6e3d9e2f7b2784affe3000

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.2.3-py2.5-win32.egg
Algorithm Hash digest
SHA256 106e2fe423507cc1c40459b1aed8894601dedc6d0dd2467915e3e0e389a0a919
MD5 1ff8333acd674abc6323b032db743f22
BLAKE2b-256 cf4f2d88aca7df76727935f0e357d7dabf94f8e11c04d30f8f43f44b87230a59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.2.3-py2.5-linux-i686.egg
Algorithm Hash digest
SHA256 88de5026596d4a7ef753693aa003c0a9ea42664d3f1f35cb5c3b9091c96cf32e
MD5 2f3e60b4f40a4e778c3608c6de7a3851
BLAKE2b-256 b33d75b3f9e3ba22170444ac50477a9630b934a8cd76dafbe09b7166135c4858

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.2.3-py2.4-win32.egg
Algorithm Hash digest
SHA256 510814e23aaa4dadf518291e1c80c73f174a5f1576c89c5d481eac10872f74ea
MD5 72c72f23c55c9ca4659fa6b8e220da9e
BLAKE2b-256 51c8ce3b3a1f018b8f7c41c9b7a15005607ae03b49747ee26842b1aa02dd09ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.2.3-py2.4-linux-i686.egg
Algorithm Hash digest
SHA256 1f1c498781d2418750c97b6b8bb3175e9bf037daa8b257e7a57040615ac69a5a
MD5 b6d1e288f2293c90b6ac39460d73e5c9
BLAKE2b-256 ada7b2c5802210ccc9f71e85c79070e18e687f1bbbfffbdf26dc278e5a7792b9

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