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.
Metadata
Release files for skyfield 0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| skyfield-0.9.tar.gz | 123.3 kB | Details |
Release files / skyfield-0.9.tar.gz
| Download URL | skyfield-0.9.tar.gz |
|---|---|
| Size | 123.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f944793cfe63c897252c589ce29e4cc71dbafce1056d657517c02bfeb8e8a72
|
|
BLAKE2b-256 checksum How to use checksums |
0afe38a8791237de165125768dc43be726a14bf02c6a24b0098ccee3a40f4ae3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |