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.46.tar.gz (399.5 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.46-py3-none-any.whl (446.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for skyfield-1.46.tar.gz
Algorithm Hash digest
SHA256 27a54edbc46232a11019bcd88a9b74d36770aff26ff8ee631b90a81ba0be93e4
MD5 3a9a6079dbfd2f7d52a81860016dc34a
BLAKE2b-256 8cf70a115ca1d08815d3cd3cad151beaf62ff60812f82a57e1ffee8d2556338f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for skyfield-1.46-py3-none-any.whl
Algorithm Hash digest
SHA256 a2ddbef6f1cc3e649ad04b2317b57e8269593f2f90cc845eaccc1e4f50441112
MD5 707c5e9c0b9544d712ed56cdc410af53
BLAKE2b-256 1e6bd9292705d63fb8fc3ce46b58adc2b8c59dd1d8595d9117f65d829aa03717

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