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

ephem-3.7.6.0.tar.gz (739.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ephem-3.7.6.0-cp34-none-win_amd64.whl (795.9 kB view details)

Uploaded CPython 3.4Windows x86-64

ephem-3.7.6.0-cp34-none-win32.whl (772.3 kB view details)

Uploaded CPython 3.4Windows x86

ephem-3.7.6.0-cp33-none-win_amd64.whl (796.0 kB view details)

Uploaded CPython 3.3Windows x86-64

ephem-3.7.6.0-cp33-none-win32.whl (772.4 kB view details)

Uploaded CPython 3.3Windows x86

ephem-3.7.6.0-cp27-none-win_amd64.whl (796.2 kB view details)

Uploaded CPython 2.7Windows x86-64

ephem-3.7.6.0-cp27-none-win32.whl (772.1 kB view details)

Uploaded CPython 2.7Windows x86

ephem-3.7.6.0-cp26-none-win_amd64.whl (796.2 kB view details)

Uploaded CPython 2.6Windows x86-64

ephem-3.7.6.0-cp26-none-win32.whl (772.1 kB view details)

Uploaded CPython 2.6Windows x86

File details

Details for the file ephem-3.7.6.0.tar.gz.

File metadata

  • Download URL: ephem-3.7.6.0.tar.gz
  • Upload date:
  • Size: 739.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ephem-3.7.6.0.tar.gz
Algorithm Hash digest
SHA256 7a4c82b1def2893e02aec0394f108d24adb17bd7b0ca6f4bc78eb7120c0212ac
MD5 405a109f3017251ecd8c2890d850f649
BLAKE2b-256 c32c9e1a815add6c222a0d4bf7c644e095471a934a39bc90c201f9550a8f7f14

See more details on using hashes here.

File details

Details for the file ephem-3.7.6.0-cp34-none-win_amd64.whl.

File metadata

File hashes

Hashes for ephem-3.7.6.0-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 f19a380f83f36e56e6e499bf673a43c42ed28c766c9cafb4326b5defcca0a116
MD5 ac3d02b5d27a587d2cf267db4bc7b464
BLAKE2b-256 675bb6059d005ab22c49666893b0c050c7ef1d778f0f13a3007047cccea1a3e4

See more details on using hashes here.

File details

Details for the file ephem-3.7.6.0-cp34-none-win32.whl.

File metadata

File hashes

Hashes for ephem-3.7.6.0-cp34-none-win32.whl
Algorithm Hash digest
SHA256 fd15421938cac27cd87c3b73c81e4695ab7a22cd37d43e05090140f5d48392d8
MD5 c958705e833a91ff0ce067fa2b85fefc
BLAKE2b-256 a27b0846d190ac766ab3cd31f92877b471db19af3fbe67a7f9025b5697b64a5f

See more details on using hashes here.

File details

Details for the file ephem-3.7.6.0-cp33-none-win_amd64.whl.

File metadata

File hashes

Hashes for ephem-3.7.6.0-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 bb3e04e981352ab8c6049325533944b882d9be1bf13c19be5d85b918ba75723f
MD5 d17e581ff4645d18622b686f6a25f0f1
BLAKE2b-256 0424a1b98131a7716afd6c296caf2aa7863813627f41ea14a0ba23769b503fa4

See more details on using hashes here.

File details

Details for the file ephem-3.7.6.0-cp33-none-win32.whl.

File metadata

File hashes

Hashes for ephem-3.7.6.0-cp33-none-win32.whl
Algorithm Hash digest
SHA256 3884de133045d2f12784ef456c0f5557139a247b88d2c26097f7bd420803ed7f
MD5 47bac88bc75e46f75e6faac630aed2c4
BLAKE2b-256 604c89492fc1408d90340ef7de56c1b6a25e946597f30f1968d5316cfe083c6e

See more details on using hashes here.

File details

Details for the file ephem-3.7.6.0-cp27-none-win_amd64.whl.

File metadata

File hashes

Hashes for ephem-3.7.6.0-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 7af6d726c3d903087c284e3dd72c5cda2b5438e84f2d564314469f0fb7494fab
MD5 bbe4447e3b952b7409da0c32922ee472
BLAKE2b-256 583ff8a45c3ca7fd60a21e891964b2cc6c7b69e130f6e42cc4e63991aaa9a7ae

See more details on using hashes here.

File details

Details for the file ephem-3.7.6.0-cp27-none-win32.whl.

File metadata

File hashes

Hashes for ephem-3.7.6.0-cp27-none-win32.whl
Algorithm Hash digest
SHA256 4bcd9899863ef04f4e75d894a6973dce4b4d16baeb8c2e96fb66bd3c677491a2
MD5 d73edcb483a8003a4daf2dddf33e9423
BLAKE2b-256 5aab76cd8bac598d619984246df81252df82b7a5f29ad50bfea6d9e7091af990

See more details on using hashes here.

File details

Details for the file ephem-3.7.6.0-cp26-none-win_amd64.whl.

File metadata

File hashes

Hashes for ephem-3.7.6.0-cp26-none-win_amd64.whl
Algorithm Hash digest
SHA256 9ea5c8d9b407fe151cece238d13e3ca12114ac5c73269ef6541bf65b208048a3
MD5 8b6ff678d45bfa4cd42e173a17a69378
BLAKE2b-256 9ab6db5f100d8d0fafb333b8e833ad25ef3c02bc172f1ffe9dde9ae06588d41d

See more details on using hashes here.

File details

Details for the file ephem-3.7.6.0-cp26-none-win32.whl.

File metadata

File hashes

Hashes for ephem-3.7.6.0-cp26-none-win32.whl
Algorithm Hash digest
SHA256 6a2e445ba3a1e6bd9d6dedcafa4dda83957f4f9b0efac3d642974c55faebcfa4
MD5 d74ac2a1c28a7a309ef6f7a4ee6d851b
BLAKE2b-256 92d8808d12e8b68f59748065e2c296cbaa9aaedbc7110d95b5141939333859c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page