Load files
This module gathers functions to read files.
- load_files.load_data(data_batch, kw_to_extract, wl_edges, file_type, *args)
Load the data from HDF5 or FITS file, select the desired keywords and store the selected data in a dictionary.
Parameters
- data_batchlist
Sequence of hdf5 files.
- kw_to_extractlist
Sequence of keywords to extract from the data files.
- wl_edges2-tuple
Minimum and maximum values of the wavelength to keep.
- file_typestring
Type of files to load. Accept only ‘hdf5’ for HDF5 files and ‘fits’ for FITS files.
- argsint
If a FITS file is load, it indicates which HDU to load. If HDF5, it does not have to be defined.
Returns
- data_dicdict
Dictionary containing the loaded data.