load_grid

starkit.gridkit.load_grid(hdf_fname, wavelength_type=None, base_class=<class 'starkit.gridkit.base.BaseSpectralGrid'> Name: BaseSpectralGrid N_inputs: <property object> N_outputs: <property object>)[source]

Load the grid from an HDF file

Parameters:
hdf_fname: ~str

filename and path to the HDF file

wavelength_type: str

use ‘air’ or ‘vacuum’ wavelength and convert if necessary (by inspecting what the grid uses in meta)

Returns:
: SpectralGrid object