Skip to main content

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skyfield-0.7.tar.gz (112.2 kB view details)

Uploaded Source

File details

Details for the file skyfield-0.7.tar.gz.

File metadata

  • Download URL: skyfield-0.7.tar.gz
  • Upload date:
  • Size: 112.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for skyfield-0.7.tar.gz
Algorithm Hash digest
SHA256 f3da324255e0633fbef38457c2942e7e3468e6c52f797c6c316b9e9b61980296
MD5 fe82ede9ff0c60e958c4596f3f76b8d2
BLAKE2b-256 a8afc677fe4e2726b4b24eceb8178638aff4c40985b24e7c5ed78e1c16c714bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page