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

Uploaded Source

Built Distribution

skyfield-1.53-py3-none-any.whl (367.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for skyfield-1.53.tar.gz
Algorithm Hash digest
SHA256 24099855f3ba3906663ac1c10e650041e747680b986e807400eddedc0be4a8b4
MD5 8764793cb65c84b1556021f8439a6102
BLAKE2b-256 2dcb0c9f9685f6ff3b9c268b1d995c584f0d09de160f46fbd6c1df0631565bfd

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for skyfield-1.53-py3-none-any.whl
Algorithm Hash digest
SHA256 f2028bba5f3617ef34afab1cabac251601f72a8cd70298ca5def72c4beadce00
MD5 5928c81d98154c41cb36b48a2fddbb4a
BLAKE2b-256 17f0c031c7a0e14b75e68c69d90ae8966d6d2383f6e33379914eea0f41bf9518

See more details on using hashes here.

Supported by

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