compute_equivalent_widths¶
- grizli.utils.compute_equivalent_widths(templates, coeffs, covar, max_R=5000, Ndraw=1000, seed=0, z=0, observed_frame=False)[source]¶
Compute template-fit emission line equivalent widths
- Parameters
- templatesdictionary of
SpectrumTemplateobjects Output template list with
NTEMPtemplates.- coeffs
ndarray, dimensions (NTEMP) Fit coefficients
- covar
ndarray, dimensions (NTEMP,NTEMP) Covariance matrix
- max_Rfloat
Maximum spectral resolution of the regridded templates.
- Ndrawint
Number of random draws to extract from the covariance matrix
- seedpositive int
Random number seed to produce repeatible results. If
None, then use default state.- zfloat
Redshift where the fit is evaluated
- observed_frammebool
If true, then computed EWs are observed frame, otherwise they are rest frame at redshift
z.
- templatesdictionary of
- Returns
- EWdictdict
Dictionary of [16, 50, 84th] percentiles of the line EW distributions.