Elegant astronomy for Python
Skyfield is a pure-Python astronomy package that is compatible with both Python 2 and 3 and makes it easy to generate high precision research-grade positions for planets and Earth satellites.
from skyfield.api import load, now planets = load('de421.bsp') earth, mars = planets['earth'], planets['mars'] jd = now() position = earth.at(jd).observe(mars) ra, dec, distance = position.radec() print(ra) print(dec) print(distance)
10h 47m 56.24s +09deg 03' 23.1" 2.33251 au
Its only binary dependency is NumPy. Skyfield can usually be installed with:
pip install skyfield
Here are the essential project links:
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size skyfield-0.6.1.tar.gz (114.0 kB)||File type Source||Python version None||Upload date||Hashes View|