SkyfieldWrapper#

class caput.astro.skyfield.SkyfieldWrapper(path=None, expire=None, ephemeris='de421.bsp')[source]#

A wrapper to help with loading Skyfield and its data.

Parameters:
pathstr | bytes | None

Directory Skyfield should save data in. If not set data will be looked for in $CAPUT_SKYFIELD_PATH or in <path to caput>/caput/astro/_skyfield_data.

expirebool, optional

Deprecated option. Skyfield no longer has a concept of expiring data. To get updated data you must force an explicit reload of it which can be done via SkyFieldWrapper.reload.

ephemerisstr, optional

The JPL ephemeris to use. Defaults to ‘de421.bsp’.

property ephemeris[source]#

A Skyfield ephemeris object (skyfield.jpllib.SpiceKernel).

Loaded at first call, and then cached.

property load[source]#

A skyfield.iokit.Loader object.

This is to be used in the same way as skyfield.api.load, in case you want something other than timescale or ephemeris.

property path[source]#

The path to the Skyfield data.

property timescale[source]#

A skyfield.timelib.Timescale object.

Loaded at first call and then cached.

Methods#

reload()

Reload the Skyfield data regardless of the expire setting.