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.49.tar.gz
(311.1 kB
view details)
Built Distribution
skyfield-1.49-py3-none-any.whl
(336.2 kB
view details)
File details
Details for the file skyfield-1.49.tar.gz
.
File metadata
- Download URL: skyfield-1.49.tar.gz
- Upload date:
- Size: 311.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20883027b2bbf4017dd916b64faaeb3713a8f88d7c8e353c15cd030ac63be92c |
|
MD5 | d4255d345e85820cdcdbdf6bb2bedde3 |
|
BLAKE2b-256 | 253a4abd429158980d639f474ba39c22ddd75f90be1d16b05361bef494518ecf |
File details
Details for the file skyfield-1.49-py3-none-any.whl
.
File metadata
- Download URL: skyfield-1.49-py3-none-any.whl
- Upload date:
- Size: 336.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4986b7d5368f159050106282dec0f97e193c32689605ee4077d7d49465aaf13e |
|
MD5 | c4b1f3b2b79b39a097ad02d0e2870b84 |
|
BLAKE2b-256 | f5e90f3818de7684d9ea4b3e41740a22e407898fecd544af5724ef39b5a12104 |