Skip to main content

Data package for Skyfield

Project description

Data files for Skyfield

Skyfield is a Python library for astronomical computations. It depends on various data files to accurately compute moon phases, planet positions, etc.

Several issues are raised by these data files:

  • If they're not found in the path of the Loader, they're downloaded at runtime. Depending on the archive you're requesting, some files might be very large, causing a long delay (directly related to your network bandwidth). In the case of a web server app, you'd cause a timeout on client's end.
  • They come mainly from 3 sources: the USNO (US Navy), Paris (Meudon) Observatory, and NASA JPL. If one of them is temporarily unavailable, you couldn't perform any computation.
  • In some countries, or behind some filtering proxies, the USNO is considered as a military website, and thus is blocked.
  • These files have an expiration date (in a more or less distant future). As a consequence, even if the files are already downloaded in the right path, at each runtime you could possibly have to download one or more files before making any computation using them.

Goal for this project

  • Providing at least the most common of these assets in Python Package.
  • Make regular releases to refresh the files before they expire.
  • Provide a warning / logging mechanism when the files are about to expire (or when they are outdated) to still allow you to compute things with the loaded assets, but being informed you need to upgrade.

This way, you could install or upgrade this data package via pip.

Once all the files are on your disk space, you can instantiate your skyfield loader pointing at their path, without having to worry about anything.

Usage

Install the packages using:

pip install skyfield skyfield-data

To create a custom Skyfield loader, use the following code:

from skyfield_data import get_skyfield_data_path
from skyfield.api import Loader
load = Loader(get_skyfield_data_path())
planets = load('de421.bsp')  # this command won't download this file
ts = load.timescale()  # this command won't download the deltat + Leap Second files

Developers

We're providing a Makefile with basic targets to play around with the toolkit. use make help to get more details.

Copyright

Data files

  • de421.bsp is provided by the Jet Propulsion Laboratory,
  • deltat.data and deltat.preds are provided by the United States Naval Observatory,
  • Leap_Second.dat is provided by the International Earth Rotation and Reference Systems Service.

Software

This Python Package code is published under the terms of the MIT license. See the COPYING file for more details.

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-data-0.0.1.tar.gz (16.0 MB view details)

Uploaded Source

Built Distribution

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

skyfield_data-0.0.1-py3-none-any.whl (16.0 MB view details)

Uploaded Python 3

File details

Details for the file skyfield-data-0.0.1.tar.gz.

File metadata

  • Download URL: skyfield-data-0.0.1.tar.gz
  • Upload date:
  • Size: 16.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for skyfield-data-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0de5d157626f16cdc7e685f0a5cd7025748021a7ccdc361ccbe985a3d67900d9
MD5 a97d2d85409dcbb50ad744ec11c3ec8f
BLAKE2b-256 20beca2303c12a6c63d83a987b58c544934f5838c2b690e3d0db64dcd7768761

See more details on using hashes here.

File details

Details for the file skyfield_data-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: skyfield_data-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for skyfield_data-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2f65b0666f6c584ccb38afb994e81dc32aed954f077ed7820884182635ffd2b
MD5 9ec4f6aef136d9f293196301c3145bb8
BLAKE2b-256 084fd747f41dafdd9bbef0fd775de46551a099413b3e3f410da0ed80238fdecf

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