Compute positions of the planets and stars
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 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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|ephem-188.8.131.52-cp26-none-win32.whl (772.1 kB) Copy SHA256 hash SHA256||Wheel||2.6||Aug 19, 2015|
|ephem-184.108.40.206-cp26-none-win_amd64.whl (796.2 kB) Copy SHA256 hash SHA256||Wheel||2.6||Aug 19, 2015|
|ephem-220.127.116.11-cp27-none-win32.whl (772.1 kB) Copy SHA256 hash SHA256||Wheel||2.7||Aug 19, 2015|
|ephem-18.104.22.168-cp27-none-win_amd64.whl (796.2 kB) Copy SHA256 hash SHA256||Wheel||2.7||Aug 19, 2015|
|ephem-22.214.171.124-cp33-none-win32.whl (772.4 kB) Copy SHA256 hash SHA256||Wheel||3.3||Aug 19, 2015|
|ephem-126.96.36.199-cp33-none-win_amd64.whl (796.0 kB) Copy SHA256 hash SHA256||Wheel||3.3||Aug 19, 2015|
|ephem-188.8.131.52-cp34-none-win32.whl (772.3 kB) Copy SHA256 hash SHA256||Wheel||3.4||Aug 19, 2015|
|ephem-184.108.40.206-cp34-none-win_amd64.whl (795.9 kB) Copy SHA256 hash SHA256||Wheel||3.4||Aug 19, 2015|
|ephem-220.127.116.11.tar.gz (739.4 kB) Copy SHA256 hash SHA256||Source||None||Aug 19, 2015|