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.
Release files for skyfield 1.55
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-1.55.tar.gz | 347.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| skyfield-1.55-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:718.9 kB
Release files / skyfield-1.55.tar.gz
| Download URL | skyfield-1.55.tar.gz |
|---|---|
| Size | 347.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05dce8aafbff3f007f01cabcd2eb1858c43d7465f58c13d22c5a828a6d2fc14b
|
|
BLAKE2b-256 checksum How to use checksums |
8f50d491b746eb3d6155d8206d86415b02d900567d463579173a518debaa4e1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.24
|
Release files / skyfield-1.55-py3-none-any.whl
| Download URL | skyfield-1.55-py3-none-any.whl |
|---|---|
| Size | 371.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f98964855067460c94aa81a337194136f4a97a62ba8bbbfac1b8556f2b66ad4
|
|
BLAKE2b-256 checksum How to use checksums |
8d5ac4cc09d4421de255ca0504485efceb3646a4e5381bfb665647e39bea5cb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.24
|