Skip to content

skyfielders/python-skyfield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6493231 · Mar 18, 2025
May 6, 2024
Sep 25, 2022
Mar 18, 2025
Feb 23, 2025
Dec 5, 2023
Mar 18, 2025
Nov 17, 2021
Feb 22, 2025
Mar 18, 2025
Jun 10, 2024
Mar 18, 2025
Jun 16, 2014
Jun 20, 2014
Mar 7, 2024
Mar 18, 2025
Mar 18, 2025
Feb 6, 2020
Apr 20, 2015
Feb 2, 2020
Jul 27, 2018
Mar 7, 2024
Jul 31, 2020
Feb 22, 2025
Mar 29, 2021
Mar 31, 2019
Mar 31, 2019
Sep 24, 2020
Jul 21, 2019
Mar 18, 2025
Feb 23, 2025
Mar 18, 2025
Mar 7, 2024

Repository files navigation

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: