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.

wavendarray, dimensions (NL,), optional

Array containing unique wavelengths. If not provided, the wavelengths will be determined from the templates.

flux_arrndarray, dimensions (NTEMP, NL), optional

Array containing the template fluxes interpolated at wave. If not provided, the fluxes will be computed from the templates.

is_linendarray, optional

Boolean array indicating emission line templates (the key in the template dictionary starts with “line “).

Returns
wavendarray, dimensions (NL,)

Array containing unique wavelengths.

flux_arrndarray, dimensions (NTEMP, NL)

Array containing the template fluxes interpolated at wave.

is_linendarray

Boolean array indicating emission line templates (the key in the template dictionary starts with “line “).