Skip to content
Elegant astronomy for Python
Python Jupyter Notebook Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
builders
ci
horizons
skyfield
.agignore
.coveragerc
.gitignore
.python-version
.travis.yml
CHANGELOG.rst
Contrib.rst
LICENSE
MANIFEST.in
README.rst
TODO.rst
de405.bsp
de421.bsp
earth-satellites.ipynb
hip_main.dat.gz
requirements.txt
setup.py
test-code.sh
test-docs.sh
update-deltat.sh

README.rst

Welcome to the Skyfield Repository

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:

You can’t perform that action at this time.