API#
- class lkspacecraft.KeplerSpacecraft[source]#
A class representing the Kepler spacecraft.
This class extends the
Spacecraft
base class and includes spacecraft-specific configurations and calculations, such as correcting for timing errors unique to the Kepler mission.- get_barycentric_time_correction(time, ra, dec)[source]#
Returns the barycentric time correction in days for observations of a target, applying mission-specific timing corrections.
Initializes the Spacecraft object and loads SPICE kernels.
This method clears any previously loaded SPICE kernels, loads the kernels specified in the
Meta.txt
file, and determines the start and end times of the kernel data.- Raises:
Exception – If there is an issue loading the SPICE kernels or retrieving the kernel time coverage.
- get_barycentric_time_correction(time: Time, ra: float | ndarray[Any, dtype[_ScalarType_co]], dec: float | ndarray[Any, dtype[_ScalarType_co]]) ndarray[Any, dtype[_ScalarType_co]] [source]#
Returns the barycentric time correction in days for observations of a particular target specified by RA and Dec.
Note that
time
here must be time in spacecraft time, in UTC format. This means that for SPOC data this should be the time without the SPOC barycentric correction applied.Note this also corrects the timing error in the Kepler TIME column, see https://archive.stsci.edu/kepler/timing_error.html
- class lkspacecraft.TESSSpacecraft[source]#
A class representing the TESS spacecraft.
This class extends the
Spacecraft
base class and includes spacecraft-specific configurations, such as the unique SPICE NAIF ID code for the TESS mission.Initializes the Spacecraft object and loads SPICE kernels.
This method clears any previously loaded SPICE kernels, loads the kernels specified in the
Meta.txt
file, and determines the start and end times of the kernel data.- Raises:
Exception – If there is an issue loading the SPICE kernels or retrieving the kernel time coverage.