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.42.tar.gz (391.4 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.42-py3-none-any.whl (436.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: skyfield-1.42.tar.gz
  • Upload date:
  • Size: 391.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for skyfield-1.42.tar.gz
Algorithm Hash digest
SHA256 3447fd3a9a9dabc2080e6a4efb56d9883decf261ad78e6c9b3f187c4fc761ace
MD5 4ec4d009d6bf0c9bcd421ae9fe063e2a
BLAKE2b-256 72dc06a1f38300c1692d7222ea5e205f28fd622c6954ae936d1a608de577ea94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: skyfield-1.42-py3-none-any.whl
  • Upload date:
  • Size: 436.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for skyfield-1.42-py3-none-any.whl
Algorithm Hash digest
SHA256 4f1c5574626455f15fc3f336be1ed9ed77efe5b97b4763af6ed358ee2f9bd3b5
MD5 29db3bcaffeb7e753ce5832269a48e55
BLAKE2b-256 632e37bfc2cfaa32225f27b92ba48cb85de38bee6887eee7baa9a0fa7c06a276

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