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.5.3.tar.gz (735.1 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.5.3.win-amd64-py3.4.exe (1.0 MB view details)

Uploaded Source

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

Uploaded Source

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

Uploaded Source

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

Uploaded Source

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

Uploaded Source

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

Uploaded Source

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

Uploaded Source

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

Uploaded Source

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

Uploaded Source

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for ephem-3.7.5.3.tar.gz
Algorithm Hash digest
SHA256 ec5ce28ac931e87649ab658a3b7eebc8f88b945e5707b48453fbe76db6578b05
MD5 0e33905844e3be5c901c13e5a9c938a3
BLAKE2b-256 93b06adbfa583cb615384b8aecc2b0e71575d5647907871f92f32c740d9473d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ephem-3.7.5.3.win-amd64-py3.4.exe
Algorithm Hash digest
SHA256 b3333a20c6ef995d680cddd6bcc46448c9becb90668d51730c4e8d0da2f52032
MD5 5ef29cd93242d46eb5dea7e60bcf7745
BLAKE2b-256 776301b202125e5f8867a6962c2d96017bcc4c32a739c342d8c74ea336d71f22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ephem-3.7.5.3.win-amd64-py3.3.exe
Algorithm Hash digest
SHA256 fae03e0f85812f7ef07787c688a993da7fd921d582ee63ccfe3cb9eb8306c97d
MD5 bd49ca60f55dbdefce4803214158dc1c
BLAKE2b-256 19c15a96021664f419ad16938dce3454b5eb528599b57b07f3e2c55a7e5490a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ephem-3.7.5.3.win-amd64-py3.2.exe
Algorithm Hash digest
SHA256 a815b1a525abecdb54dbbad62ea796a2cc53e616b712e4b19fc3d557a61e9579
MD5 a8111db1ce92576dc1915f936c95029d
BLAKE2b-256 1c0525327e535f001dded473b004431429f823373b20761fef81af9d79171668

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ephem-3.7.5.3.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 34123af7cb36ea4138eec9f5c37b0ef2624564234b7947ba451d9762f83bbcd6
MD5 a066ab3a495360b9766c8184269e1de1
BLAKE2b-256 78404c86c01cb2fd86cf9c01ffc711161f55670c8bb767c24e5d9d37e22a8d5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ephem-3.7.5.3.win-amd64-py2.6.exe
Algorithm Hash digest
SHA256 44f11e5c3ccf1441d0b8a33b1169352e581c62d9ad31be6ea47bb964979d8954
MD5 c53f38cd0ac9400e5e9aaaee1bf134b9
BLAKE2b-256 a2e6bda54679d768fca3d0d2b4fc26195d7de00ee570257c24484f1d6685326e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ephem-3.7.5.3.win32-py3.4.exe
Algorithm Hash digest
SHA256 13e2bab29663dce571d2fb6a85820aeef5b429cfbf7cfa811f1efae979fa5319
MD5 30873b8893de5d7e28cc59664fbd8ba2
BLAKE2b-256 23004bbe0777481a2cbdbc60564588885f04c17182571927fadbdfd8bb76633a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ephem-3.7.5.3.win32-py3.3.exe
Algorithm Hash digest
SHA256 5fd0a77a799162da377f69a324adf8789d191187baf950971cd85e7443b134f8
MD5 1659ed230874ea01c5aa8496e8ad5a0a
BLAKE2b-256 5e1354e92920ce7edf0b546babbd1e3a048f27b16967d708c5b666a12f8257f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ephem-3.7.5.3.win32-py3.2.exe
Algorithm Hash digest
SHA256 e1505579ee34741c998859f00095d07b15c869716805758c9e945dfbb511bbc7
MD5 1c4ef65474f5bebe2f93d8f74e0e3900
BLAKE2b-256 2d94e28d4e1a2fabf0dd6ed9084e04ca4a65cb0cb76b6d0998892d0862b1565b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ephem-3.7.5.3.win32-py2.7.exe
Algorithm Hash digest
SHA256 7f38da6dbce099d84469930a0988b0345f823bddf2f99ec1120845e0557d9da2
MD5 ef07d50c3bd9506e0aabc14b0aa18775
BLAKE2b-256 4cc1a83b97a4305153c3507abf67b4da72cc4b32d0e99420e821e1f62216b209

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ephem-3.7.5.3.win32-py2.6.exe
Algorithm Hash digest
SHA256 3aec55e3828150c918bc867462ea4757f7f9a7279e3b2588d98a2bb634d66a3b
MD5 4f787ab6586d9bb7e091bc345cbc65bb
BLAKE2b-256 37d971f6615c941422296317cf50865de401dbcbd900e1d05461638ed221f860

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