padre_craft.io.file_tools#

Provides generic file readers.

Functions

read_file(filename)

Read a file.

read_raw_file(file_path)

Read a raw (csv) data file and return a timeseries.

read_fits(filename)

Read a fits file of any level and return the appropriate data objects.

padre_craft.io.file_tools.read_file(filename: Path)[source]#

Read a file.

Parameters:

filename (Path) – A file to read.

Returns:

data

Examples

padre_craft.io.file_tools.read_fits(filename: Path)[source]#

Read a fits file of any level and return the appropriate data objects.

padre_craft.io.file_tools.read_raw_file(file_path: Path) TimeSeries[source]#

Read a raw (csv) data file and return a timeseries. Note that columns that cannot are not recognized as ints or floats are removed.

Parameters:

filename (Path) – A file to read

Returns:

ts (TimeSeries) – The timeseries data