Elegant astronomy for Python
Project description
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
planets = load('de421.bsp')
earth, mars = planets['earth'], planets['mars']
ts = load.timescale()
t = ts.now()
position = earth.at(t).observe(mars)
ra, dec, distance = position.radec()
print(ra)
print(dec)
print(distance)
The result:
10h 47m 56.24s +09deg 03' 23.1" 2.33251 au
Skyfield’s only binary dependency is NumPy. Once that is available, Skyfield can usually be installed with:
pip install skyfield
Here are the essential project links:
Skyfield package on the Python Package Index.
Issue tracker on GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
skyfield-1.43.1.tar.gz
(391.6 kB
view hashes)
Built Distribution
skyfield-1.43.1-py3-none-any.whl
(439.1 kB
view hashes)
Close
Hashes for skyfield-1.43.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e615b69e4328d074bb9a563aa6ce324c8381217bd19d3ecbed7075f182b1709 |
|
MD5 | cc0a794bcd7b1408bcd655cd9c9b1af1 |
|
BLAKE2b-256 | b8db9fab37aa60881699af112e5bad7dcda405381b7425fd4bc48ff0682251d4 |