dot_templates¶
- grizli.utils.dot_templates(coeffs, templates, z=0, max_R=5000, apply_igm=True)[source]¶
Compute template sum analogous to
np.dot(coeffs, templates)
.- Parameters
- coeffsarray-like
Coefficients for each template.
- templateslist of
SpectrumTemplate
List of templates.
- zfloat, optional
Redshift to apply to the templates (default is 0).
- max_Rfloat, optional
Maximum spectral resolution to apply to the templates (default is 5000).
- apply_igmbool, optional
Apply intergalactic medium (IGM) attenuation to the templates.
- Returns
- tc
SpectrumTemplate
Continuum template.
- tl
SpectrumTemplate
Full template (including lines).
- tc