kepler_fits_reader#
- astropy.timeseries.io.kepler_fits_reader(filename, unit_parse_strict='warn')[source]#
This serves as the FITS reader for KEPLER or TESS files within astropy-timeseries.
This function should generally not be called directly, and instead this time series reader should be accessed with the
read()
method:>>> from astropy.timeseries import TimeSeries >>> ts = TimeSeries.read('kplr33122.fits', format='kepler.fits')
- Parameters:
- filename
str
orpathlib.Path
File to load.
- unit_parse_strict
str
, optional Behaviour when encountering invalid column units in the FITS header. Default is “warn”, which will emit a
UnitsWarning
and create aUnrecognizedUnit
. Values are the ones allowed by theparse_strict
argument ofUnit
:raise
,warn
andsilent
.
- filename
- Returns:
- ts
TimeSeries
Data converted into a TimeSeries.
- ts