Lightkurve v2.0
LightCurve.
read
Read and parse a file and returns a astropy.timeseries.TimeSeries.
astropy.timeseries.TimeSeries
This method uses the unified I/O infrastructure in Astropy which makes it easy to define readers/writers for various classes (https://docs.astropy.org/en/stable/io/unified.html). By default, this method will try and use readers defined specifically for the astropy.timeseries.TimeSeries class - however, it is also possible to use the format keyword to specify formats defined for the astropy.table.Table class - in this case, you will need to also provide the column names for column containing the start times for the bins, as well as other column names (see the Parameters section below for details):
format
astropy.table.Table
>>> from astropy.timeseries import TimeSeries >>> ts = TimeSeries.read('sampled.dat', format='ascii.ecsv', ... time_column='date')
File to parse.
File format specifier.
The name of the time column.
The time format for the time column.
The time scale for the time column.
Positional arguments passed through to the data reader.
Keyword arguments passed through to the data reader.
astropy.timeseries.sampled.TimeSeries
TimeSeries corresponding to file contents.
Notes
The available built-in formats are:
Format
Read
Write
Auto-identify
cdips
Yes
No
everest
k2sff
kepler
kepseismic
pathos
qlp
tasoc
tess