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

Uploaded Source

Built Distributions

pyephem-3.7.3.2.win32-py2.5.exe (778.9 kB view details)

Uploaded Source

pyephem-3.7.3.2.win32-py2.4.exe (778.9 kB view details)

Uploaded Source

pyephem-3.7.3.2-py2.5-win32.egg (749.4 kB view details)

Uploaded Source

pyephem-3.7.3.2-py2.5-linux-i686.egg (878.9 kB view details)

Uploaded Source

pyephem-3.7.3.2-py2.4-win32.egg (749.6 kB view details)

Uploaded Source

pyephem-3.7.3.2-py2.4-linux-i686.egg (879.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyephem-3.7.3.2.tar.gz
Algorithm Hash digest
SHA256 f2aa702fa9144ac6057694da5f34e63a785f80553f1aa764b554c04e280850da
MD5 abed0d829a650dd8fae98493845f840c
BLAKE2b-256 de85f22e60054d06c2077450341f1bc9bbcf8ac20c044010f5133174f3abec5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.2.win32-py2.5.exe
Algorithm Hash digest
SHA256 823a8133b0c3dd2bdfeb2088ba4f14a69f4b041de1cc38eb27edaad6294ccc6c
MD5 16f0d4f14bccdf2f94b9fcf6a46441e8
BLAKE2b-256 ebbb790da6a05d3f70c6fefdec5e0734e0f67819acd589eda72a001c755e8295

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.2.win32-py2.4.exe
Algorithm Hash digest
SHA256 b76b05e8934ba4f66cdced99e90d44af7f5df96d5cc8b6f1658dc9e23bd9e2ed
MD5 e60fc5ea3f805ecf4298a2ed40a4344f
BLAKE2b-256 b39aa177bbb5695a584f22a7077a2145b213930ee31b0dc7b411b6c4dcbbaf22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.2-py2.5-win32.egg
Algorithm Hash digest
SHA256 d16558b59f6c1f440f627d1200d734dc9b555d9ec0540cf6952d5109c28c6f79
MD5 986bd7115ed3432701ddeceecdeaa4ef
BLAKE2b-256 8c754cc7c325f405f7986026656e7daa6b1b5f70d448bc47562245e96b5a1dac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.2-py2.5-linux-i686.egg
Algorithm Hash digest
SHA256 144e1b359e6a3b09bf6f010b6de478967bb00b0622ababd91fe17ce7f1a571b9
MD5 eee71645b6b101c24ff56309281d7e4f
BLAKE2b-256 18128141684f943dc78e0d33df5ff8dfd500185763ff3f9d1fee4305c0806e00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.2-py2.4-win32.egg
Algorithm Hash digest
SHA256 ed27d7571445ab74215a0b397cfd673c188608fb2d55dcb22158fb6030447b30
MD5 e02841590eb6aab52cd7a9f24a5f30c7
BLAKE2b-256 3ca567444ea70dd029fbd0e6aa455e5011a5e9309282c540f752801ce0b21525

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.2-py2.4-linux-i686.egg
Algorithm Hash digest
SHA256 5169de533737ab98d6b19f0dbfd4bfa8283558e76e8ef0422f7ddb867a7f529c
MD5 dc2a814b99c0df99da85c246fa7d4d6a
BLAKE2b-256 4e54178ab248dc7bcce64ac3619b4121941551e00c22b67ec7bf70eb21eabd51

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