caput.astro.skyfield#

Routines for dealing with skyfield data and conversions.

This module provides an interface to skyfield which stores the required datasets (timescale data and an ephemeris) in a fixed location. The location is determined by the following (in order):

  • By passing a path=<path> option to the SkyfieldWrapper constructor.

  • By setting the environment variable CAPUT_SKYFIELD_PATH

  • If neither of the above is set, the data is placed in <path to caput>/caput/astro/_skyfield_data/

Classes#

SkyfieldWrapper

A wrapper to help with loading Skyfield and its data.

Functions#

skyfield_star_from_ra_dec(ra, dec[, name])

Create a Skyfield star object from an ICRS position.

skyfield_time_to_unix(skyfield_time)

Formats the Skyfield time into UNIX times.

unix_to_skyfield_time(unix_time)

Formats the Unix time into a time that can be interpreted by Skyfield.