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.4.1.tar.gz
(180.6 kB
view details)
File details
Details for the file skyfield-1.4.1.tar.gz.
File metadata
- Download URL: skyfield-1.4.1.tar.gz
- Upload date:
- Size: 180.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2ceeceb9e0240b25de457f556866a4001fdafb0af8ab23f6fb72c6e730887f1
|
|
| MD5 |
84a6a4a6b7c6393ac44f04cf22954e8f
|
|
| BLAKE2b-256 |
9b67ab3ac8fcc997de19165e1aa317825e7b4ff6793346444fe68768d89ed1c2
|