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-1.54.tar.gz (346.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skyfield-1.54-py3-none-any.whl (370.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: skyfield-1.54.tar.gz
  • Upload date:
  • Size: 346.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.24

File hashes

Hashes for skyfield-1.54.tar.gz
Algorithm Hash digest
SHA256 bf8b79d6dbbe1add0327aca485d6388bb6a13cab70528d015913a9b07a1d6903
MD5 2c7c40b9a41bbfd42ef3602b29d578b9
BLAKE2b-256 c98c98bf5d9042218580fc10c4ba0c51b9af26bc73b614ce64341c0dfad39074

See more details on using hashes here.

File details

Details for the file skyfield-1.54-py3-none-any.whl.

File metadata

  • Download URL: skyfield-1.54-py3-none-any.whl
  • Upload date:
  • Size: 370.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.24

File hashes

Hashes for skyfield-1.54-py3-none-any.whl
Algorithm Hash digest
SHA256 c9b313185448963ea7fa4cf8e4298ba028b179b80ebd4c5675497519f21c04a2
MD5 e70a59edfcf1317c8b174ae4b0e689ad
BLAKE2b-256 e78af196038b2bea40c372d900803dac0d5e4eab578cb05b92ff7172ced4c1cf

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