Skip to main content

Compute positions of the planets and stars

Project description

http://bottlepy.org/docs/dev/_static/Gittip.png https://travis-ci.org/brandon-rhodes/pyephem.png

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. If you have a C compiler and the pip Python installer tool on your system, then installing PyEphem should be as easy as:

pip install ephem

There are also Windows installers in the downloads section below.

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

Uploaded Source

Built Distributions

pyephem-3.7.5.3.win-amd64-py3.4.exe (1.0 MB view details)

Uploaded Source

pyephem-3.7.5.3.win-amd64-py3.3.exe (1.0 MB view details)

Uploaded Source

pyephem-3.7.5.3.win-amd64-py3.2.exe (1.0 MB view details)

Uploaded Source

pyephem-3.7.5.3.win-amd64-py2.7.exe (1.0 MB view details)

Uploaded Source

pyephem-3.7.5.3.win-amd64-py2.6.exe (1.0 MB view details)

Uploaded Source

pyephem-3.7.5.3.win32-py3.4.exe (957.5 kB view details)

Uploaded Source

pyephem-3.7.5.3.win32-py3.3.exe (957.5 kB view details)

Uploaded Source

pyephem-3.7.5.3.win32-py3.2.exe (962.3 kB view details)

Uploaded Source

pyephem-3.7.5.3.win32-py2.7.exe (962.4 kB view details)

Uploaded Source

pyephem-3.7.5.3.win32-py2.6.exe (962.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyephem-3.7.5.3.tar.gz
Algorithm Hash digest
SHA256 cb0d7950d108aa5cbb1eb6e558086e98230de03ee1ede017a71701257b67eceb
MD5 46b101da152bb109b1137263b150f390
BLAKE2b-256 fb072879ec4cc4c22c5cb95226e2bad5d6886eb9c0b134cc200d1cb694325af4

See more details on using hashes here.

File details

Details for the file pyephem-3.7.5.3.win-amd64-py3.4.exe.

File metadata

File hashes

Hashes for pyephem-3.7.5.3.win-amd64-py3.4.exe
Algorithm Hash digest
SHA256 c985631801804b9b74b0733b34b2cdab42bfff8b53ac50a5a7d98708c9ce9365
MD5 6f2cc27f7b760bb51e656a09287fe47b
BLAKE2b-256 f81b5287140a7383cf49c1e6883f503bb7554ccb98964fdf4a3b6151148e6ba6

See more details on using hashes here.

File details

Details for the file pyephem-3.7.5.3.win-amd64-py3.3.exe.

File metadata

File hashes

Hashes for pyephem-3.7.5.3.win-amd64-py3.3.exe
Algorithm Hash digest
SHA256 a047a4af078cc3e9eeb4488383f742b9e7abcadc5e1fdd689df10b20e8119150
MD5 eab5fde7dbcef2fb53d0cc6f08f0e83a
BLAKE2b-256 38888e535d625eb6731cd204697c7d5478cadfba981d902871baf3296fd29a4f

See more details on using hashes here.

File details

Details for the file pyephem-3.7.5.3.win-amd64-py3.2.exe.

File metadata

File hashes

Hashes for pyephem-3.7.5.3.win-amd64-py3.2.exe
Algorithm Hash digest
SHA256 2463a1410d876bee96072f2775975daab300eb98c4220a6e3ebdf51da1ed3e67
MD5 27559badae9ef2b340d7a73bd6e2bb58
BLAKE2b-256 d671db10688b44554b230ec54ab1953609cde43459b3134e3833bf38b67ded79

See more details on using hashes here.

File details

Details for the file pyephem-3.7.5.3.win-amd64-py2.7.exe.

File metadata

File hashes

Hashes for pyephem-3.7.5.3.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 7e5ac737c88106c040b9c74b3a1b644343a232852bd040cdc72d161f5c2fbeb0
MD5 441ce7b02de17a20228156dfc5e4255e
BLAKE2b-256 f2ea556b7e48f76dddc83a8a889aec51a6ffb0975199afab76bad05b183aecb8

See more details on using hashes here.

File details

Details for the file pyephem-3.7.5.3.win-amd64-py2.6.exe.

File metadata

File hashes

Hashes for pyephem-3.7.5.3.win-amd64-py2.6.exe
Algorithm Hash digest
SHA256 2ba41c222d1206f5184088990ae3299dfbbe378e73265902b37ed8ec6d3c74e4
MD5 5b9e6dbbf88e0639269b40cb7db105a9
BLAKE2b-256 9927128fb46c77ce179fe9c422a85ca3f79c1a726134d3d88815e7474704c0e9

See more details on using hashes here.

File details

Details for the file pyephem-3.7.5.3.win32-py3.4.exe.

File metadata

File hashes

Hashes for pyephem-3.7.5.3.win32-py3.4.exe
Algorithm Hash digest
SHA256 1a13cd937708a0944ac8413c9424cad1348d447fa3a343f88cf0fe31f39aec02
MD5 e73a944f0545e42639883701d8b68634
BLAKE2b-256 7b9a014529fb0de56b65ba68ab2cec0898f31e1345b76bd4fd4554d283f2277a

See more details on using hashes here.

File details

Details for the file pyephem-3.7.5.3.win32-py3.3.exe.

File metadata

File hashes

Hashes for pyephem-3.7.5.3.win32-py3.3.exe
Algorithm Hash digest
SHA256 8bd22931e9060320423a7b6c0ff19fca82e9528c8c287abf9d0e3ad9cb2e6bb7
MD5 4cc993a55216793d1c0bcefdb57a2a31
BLAKE2b-256 e2ae386b33910d85e334a5f08cf7089c5111adbc92b433d124c7396dbf076566

See more details on using hashes here.

File details

Details for the file pyephem-3.7.5.3.win32-py3.2.exe.

File metadata

File hashes

Hashes for pyephem-3.7.5.3.win32-py3.2.exe
Algorithm Hash digest
SHA256 f8bbbc735d93215ddfc5813f9d8847ef2b9e794aa4e910058e8a03da6f5a0d54
MD5 2d1bbd49d351d15bf9baa89c23e777a6
BLAKE2b-256 c89d5400e0c2d2be458ddad53c51fc75cfe026dda71959f0f0384c139c13152e

See more details on using hashes here.

File details

Details for the file pyephem-3.7.5.3.win32-py2.7.exe.

File metadata

File hashes

Hashes for pyephem-3.7.5.3.win32-py2.7.exe
Algorithm Hash digest
SHA256 304ae3a896161eb454d07cbb920b76c2a51d90cd64c05a125b723a5b6fe21f03
MD5 9e586fd90435c9f0f26c6b151c3d7944
BLAKE2b-256 048d66463c991be3811bde9053303b85452b5dfa9587fd985ebcb7770f2503f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyephem-3.7.5.3.win32-py2.6.exe
Algorithm Hash digest
SHA256 de7c3f3591ce48cdba6b43a2669294e7ad3d531620d10f8b77217221d2f95379
MD5 eb516ab41bfaf121816dfd9e28780fce
BLAKE2b-256 fba230ffb9c9cab88e4eade8b52ba9099ff0375649a2c82670921a00d764ca98

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