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.18.tar.gz
(260.5 kB
view details)
File details
Details for the file skyfield-1.18.tar.gz
.
File metadata
- Download URL: skyfield-1.18.tar.gz
- Upload date:
- Size: 260.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ea2c35a8c186b29aee38422f4e2e138a7fbe1395d7c566550b1ee8185e15e14 |
|
MD5 | 70a25746aa6871efc7343e0999a74968 |
|
BLAKE2b-256 | dc091bbcda50bb4c0d0bf3a1a0f67f28083a7fba6edbc9bc8333e12b5a2de563 |