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(builtin=True)
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.25.tar.gz (290.1 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for skyfield-1.25.tar.gz
Algorithm Hash digest
SHA256 9277958d7f55a1647968c40e531fa5836a4194100b08a27ecc32e4ec55fb29f3
MD5 803a5976e01c73a6ac9bb5e4af694f16
BLAKE2b-256 aaf159b0b7d75f900cdb0032b9ec070489bea3bc216b3a3140599c1dfc00a33e

See more details on using hashes here.

Provenance

Supported by

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