Elegant astronomy for Python
Project Links
Meta
Author: Brandon Rhodes
Classifiers
Development Status
- 5 - Production/Stable
Intended Audience
- Developers
- Education
- Science/Research
License
- OSI Approved :: MIT License
Programming Language
- Python :: 2.7
- Python :: 3.7
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
Topic
- Scientific/Engineering :: Astronomy
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.
Apr 07, 2025
1.53
Mar 18, 2025
1.52
Feb 23, 2025
1.51
Feb 15, 2025
1.50
Jun 13, 2024
1.49
Feb 07, 2024
1.48
Jan 13, 2024
1.47
Apr 09, 2023
1.46
Sep 15, 2022
1.45
Sep 12, 2022
1.44
Jul 06, 2022
1.43.1
Jul 06, 2022
1.43
Feb 06, 2022
1.42
Dec 16, 2021
1.41
Nov 14, 2021
1.40
Apr 14, 2021
1.39
Apr 03, 2021
1.38
Feb 16, 2021
1.37
Jan 27, 2021
1.36
Dec 31, 2020
1.35
Dec 10, 2020
1.34
Nov 18, 2020
1.33
Nov 16, 2020
1.32
Oct 24, 2020
1.31
Oct 11, 2020
1.30
Sep 26, 2020
1.29
Sep 24, 2020
1.28
Sep 15, 2020
1.27
Aug 01, 2020
1.26
Jul 24, 2020
1.25
Jul 21, 2020
1.24
Jul 09, 2020
1.23
Jun 08, 2020
1.22
May 29, 2020
1.21
Apr 24, 2020
1.20
Apr 23, 2020
1.19
Mar 26, 2020
1.18
Feb 02, 2020
1.17
Dec 20, 2019
1.16
Nov 20, 2019
1.15
Nov 01, 2019
1.14
Oct 10, 2019
1.13
Sep 02, 2019
1.12
Jul 22, 2019
1.11
Feb 02, 2019
1.10
Sep 23, 2018
1.9
Sep 12, 2018
1.8
Sep 04, 2018
1.7
Jul 25, 2018
1.6
Jul 04, 2018
1.5
May 24, 2018
1.4.1
May 21, 2018
1.4
Apr 15, 2018
1.3
Mar 20, 2018
1.2
Jan 15, 2018
1.1
Mar 15, 2017
1.0
Dec 20, 2016
0.9.1
Aug 27, 2016
0.9
Mar 30, 2016
0.8
Mar 24, 2016
0.7
Dec 13, 2015
0.6.1
Nov 30, 2015
0.6
Oct 19, 2015
0.5
Nov 23, 2014
0.4
Aug 19, 2014
0.3
Jun 13, 2014
0.2
Jan 21, 2014
0.1