match_templates

eispac.core.match_templates(eis_obs)[source]

Generate a list of all template files that match an EIS file or window.

Parameters:

eis_obs (EISCube object, str, or pathlib.Path) – EIS data to use for searching. If given an EISCube, will only find templates that match the selected spectral window. If given the filepath to an EIS level-1 HDF5 file, will find all templates that match each window in the observation.

Returns:

matched_templates – List of template files that match the selected spectral window. If a filepath was input, a list of lists will be returned instead. Each sublist contains the matched templates for the corresponding window (e.g. matched_templates[0] would contain the list of templates matching the first window in the data file).

Return type:

list or list of lists