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:
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|pyephem-188.8.131.52-cp26-none-win32.whl (771.2 kB) Copy SHA256 Checksum SHA256||cp26||Wheel||Aug 19, 2015|
|pyephem-184.108.40.206-cp26-none-win_amd64.whl (795.3 kB) Copy SHA256 Checksum SHA256||cp26||Wheel||Aug 19, 2015|
|pyephem-220.127.116.11-cp27-none-win32.whl (770.9 kB) Copy SHA256 Checksum SHA256||cp27||Wheel||Aug 19, 2015|
|pyephem-18.104.22.168-cp27-none-win_amd64.whl (795.0 kB) Copy SHA256 Checksum SHA256||cp27||Wheel||Aug 19, 2015|
|pyephem-22.214.171.124-cp33-none-win32.whl (771.2 kB) Copy SHA256 Checksum SHA256||cp33||Wheel||Aug 19, 2015|
|pyephem-126.96.36.199-cp33-none-win_amd64.whl (794.7 kB) Copy SHA256 Checksum SHA256||cp33||Wheel||Aug 19, 2015|
|pyephem-188.8.131.52-cp34-none-win32.whl (771.1 kB) Copy SHA256 Checksum SHA256||cp34||Wheel||Aug 19, 2015|
|pyephem-184.108.40.206-cp34-none-win_amd64.whl (794.7 kB) Copy SHA256 Checksum SHA256||cp34||Wheel||Aug 19, 2015|
|pyephem-220.127.116.11.tar.gz (739.6 kB) Copy SHA256 Checksum SHA256||–||Source||Aug 19, 2015|