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

Uploaded Source

Built Distributions

pyephem-3.7.3.3.win32-py2.5.exe (779.6 kB view details)

Uploaded Source

pyephem-3.7.3.3.win32-py2.4.exe (779.6 kB view details)

Uploaded Source

pyephem-3.7.3.3-py2.5-win32.egg (750.5 kB view details)

Uploaded Source

pyephem-3.7.3.3-py2.5-linux-i686.egg (880.0 kB view details)

Uploaded Source

pyephem-3.7.3.3-py2.4-win32.egg (750.7 kB view details)

Uploaded Source

pyephem-3.7.3.3-py2.4-linux-i686.egg (880.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyephem-3.7.3.3.tar.gz
Algorithm Hash digest
SHA256 dd7aedbc9dade0ce25a2a5e2443790fb9d9a607446fb84932e653287b4f160b4
MD5 1e13d951bd46b98476d888bf6e1a06fa
BLAKE2b-256 cd4081a185388d5a19414f524211522a51882c262b69383536fb42e85454ce02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.3.win32-py2.5.exe
Algorithm Hash digest
SHA256 21a3c2927ac2ce1504affb0e84d2e767576d7cdd9b7bea71a61cdbbd90805af2
MD5 5a2a804caa801b4b0a4c25f30287f974
BLAKE2b-256 1a8860ee0af5fedcc9c7637e30f4168c974110d448a3829f98b572ab2317c70b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.3.win32-py2.4.exe
Algorithm Hash digest
SHA256 9d603dc1b0925aa7240d68737b19190df100251767b9ae7337a751e0525125d3
MD5 5106ce1640836a85545f9aa5e79aa41a
BLAKE2b-256 6669aa076301217b28e4b16448cecfa1199e7494bce29ff9618114675700b511

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.3-py2.5-win32.egg
Algorithm Hash digest
SHA256 26ac3325a7b1c6305b478fd4d98bac32e9decfd70a57690d9cfa0703c9e22cfd
MD5 56860e130aaf279a2e58d5c769ac914d
BLAKE2b-256 135ef77c3d3613a7003ff1958638f055f3db0acd3cedd1707f17619910636a03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.3-py2.5-linux-i686.egg
Algorithm Hash digest
SHA256 196d8ef8dad5c805888e6f1a1641d8395532031d17055a92227b2d309e51d0c4
MD5 6c5cfcf3798223e5aa8a7d4d6cdc01c2
BLAKE2b-256 bc159d8e31ac881092fc93bf5c33d6700de102b9f9a313a0f02f6d6f1d4220f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.3-py2.4-win32.egg
Algorithm Hash digest
SHA256 8cce94f57251aafc3afea7d7fc913361348bceec055813540230875150836bcd
MD5 413f9bc8d99d3beca4e5620c8cc6ac09
BLAKE2b-256 0ff0512c5d644a27a48773dbfb86195bf74815ff2f82aca3345fb31e129837f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.3-py2.4-linux-i686.egg
Algorithm Hash digest
SHA256 20a9f5e30f303ce9b2151e4984ff7b6c72f739a8407ba6c27cc7aa4d9b419bc7
MD5 d095b42f578e399ff184ac7ccd7e744e
BLAKE2b-256 267ec27d8c7c258c0c9a4cf3cec9a451db2e46b3a2e5b01c048c4b26b74a8df3

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