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

Uploaded Source

Built Distributions

pyephem-3.7.3.4.win32-py2.6.exe (945.9 kB view details)

Uploaded Source

pyephem-3.7.3.4.win32-py2.5.exe (805.9 kB view details)

Uploaded Source

pyephem-3.7.3.4.win32-py2.4.exe (805.9 kB view details)

Uploaded Source

pyephem-3.7.3.4-py2.6-win32.egg (785.1 kB view details)

Uploaded Source

pyephem-3.7.3.4-py2.6-linux-i686.egg (921.6 kB view details)

Uploaded Source

pyephem-3.7.3.4-py2.5-win32.egg (779.4 kB view details)

Uploaded Source

pyephem-3.7.3.4-py2.5-linux-i686.egg (912.1 kB view details)

Uploaded Source

pyephem-3.7.3.4-py2.4-win32.egg (779.7 kB view details)

Uploaded Source

pyephem-3.7.3.4-py2.4-linux-i686.egg (922.1 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyephem-3.7.3.4.tar.gz
Algorithm Hash digest
SHA256 d6d2491c4b2d7d123f35bfda5b6ddd20afca832dfc4e10f3b2499bbd4c5e4587
MD5 de66c221a740ceb2e28056240d895011
BLAKE2b-256 bb6492f6cdbcaf51bd5062eb2c946aa5b8ed3bfb3e55be64569c3509ffc9fdd9

See more details on using hashes here.

File details

Details for the file pyephem-3.7.3.4.win32-py2.6.exe.

File metadata

File hashes

Hashes for pyephem-3.7.3.4.win32-py2.6.exe
Algorithm Hash digest
SHA256 5d8c14535908f59239dffef42e507cb76ca6b6c92ad276d3abdb35314519af37
MD5 a0777c05a15a1b226b5f15173b1a15d5
BLAKE2b-256 50922b95a8bfe47f0feeef93a00fedaf7c92830b75812ad5bdcc9d24815d1cb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.4.win32-py2.5.exe
Algorithm Hash digest
SHA256 7c6eced4c8d183bce3742fcd75c82810fe6017d7345cec897661ccbbc74bbd9b
MD5 3c5a518d9adca995b9bb7e3a90a26e0e
BLAKE2b-256 4df6f6f0280a04497b770684ed0190ee8e05047845a3bd17c22afbcc85811cc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.4.win32-py2.4.exe
Algorithm Hash digest
SHA256 c74373af6999672ef437ec697e167c8713d985dbca3741b11f6343f0a5c95bc2
MD5 06dd43b7bd790d7979d0b2819d659d51
BLAKE2b-256 e395d910c5272a60ef37982ddb70a83be52c4069aab2909b9824a47a5f68c562

See more details on using hashes here.

File details

Details for the file pyephem-3.7.3.4-py2.6-win32.egg.

File metadata

File hashes

Hashes for pyephem-3.7.3.4-py2.6-win32.egg
Algorithm Hash digest
SHA256 be7364bf739c1abc806b14370870e22448765d03a2f8574b8b80678d915058c7
MD5 cc692962962ce5123f7a19a86fed4e08
BLAKE2b-256 deac6b852e77d5487db5400866f9a34c9562346946613a9f56f75f10cfb91c0c

See more details on using hashes here.

File details

Details for the file pyephem-3.7.3.4-py2.6-linux-i686.egg.

File metadata

File hashes

Hashes for pyephem-3.7.3.4-py2.6-linux-i686.egg
Algorithm Hash digest
SHA256 9f8e2bbe3e52f2955f2d59a43bda5c1c348a3af19284441d5ce3ac98953d8ba4
MD5 70063c972e6457f264f38a863eef98e1
BLAKE2b-256 d0a451f71287eca82bccbaeac7e7b720420e05c31fb6432461466b86bfb6d971

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.4-py2.5-win32.egg
Algorithm Hash digest
SHA256 6a141476eac201d51b4a453fdc21790880122aa4002bf9c90ff3d3de4ce94c68
MD5 dc1f9d40b2c818479c44780acb659779
BLAKE2b-256 f4289c2cdd1f0bda3de37fb986493ba228ebc79d925e7263bca034f2893b5523

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.4-py2.5-linux-i686.egg
Algorithm Hash digest
SHA256 f6f77e8670ce0f79a728b7d84200593a1bfdd1c5ce23d38c4b36763565987283
MD5 67ce665017c79dfe56ad1581d95e85d1
BLAKE2b-256 4e39b1532492d8617edf982b224a1100f45e702cebf04ff439a1861a750a1f93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.4-py2.4-win32.egg
Algorithm Hash digest
SHA256 57846266346f421769ad6c7970cabd46e32f509947b39968e0ffb282be09564f
MD5 9afe871fd5bab90073f28506e65610d7
BLAKE2b-256 31772de76666d4d2bfce07a4adc3dca03e716f654c9864ddee8e6b589c9d8a69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.3.4-py2.4-linux-i686.egg
Algorithm Hash digest
SHA256 690725eb2c3dd19c39884f5df21bd08db586a760e31274df8e003fd606ef2fed
MD5 a025ea18b3bd85a4b5e87ec4bd23df2a
BLAKE2b-256 070c6589dadaa5653bf62584037d28fb4ff92c913683851a7ea2bd69f540beac

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