array_templates¶
- grizli.utils.array_templates(templates, wave=None, max_R=5000, z=0, apply_igm=False)[source]¶
Return an array version of the templates that have all been interpolated to the same grid.
- Parameters
- templatesdictionary of
SpectrumTemplate
objects Output template list with
NTEMP
templates.- max_Rfloat
Maximum spectral resolution of the regridded templates.
- zfloat
Redshift where to evaluate the templates. But note that this is only used to shift templates produced by
bspline_templates
, which are defined in the observed frame.- wave
ndarray
, dimensions(NL,)
, optional Array containing unique wavelengths. If not provided, the wavelengths will be determined from the templates.
- flux_arr
ndarray
, dimensions(NTEMP, NL)
, optional Array containing the template fluxes interpolated at
wave
. If not provided, the fluxes will be computed from the templates.- is_line
ndarray
, optional Boolean array indicating emission line templates (the key in the template dictionary starts with “line “).
- templatesdictionary of
- Returns