padre_meddea.io.file_tools#

Provides generic file readers.

Functions

read_file(filename)

Read a file.

read_raw_file(filename)

Read a raw data file.

read_fits(filename)

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

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

Read a file.

Parameters:

filename (Path) – A file to read.

Returns:

data

Examples

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

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

padre_meddea.io.file_tools.read_raw_file(filename: Path)[source]#

Read a raw data file.

Parameters:

filename (Path) – A file to read

Returns:

data (dict) – A dictionary of data arrays.