load_templates

grizli.utils.load_templates(fwhm=400, line_complexes=True, stars=False, full_line_list=['PaB', 'HeI-1083', 'SIII', 'OII-7325', 'ArIII-7138', 'SII', 'Ha', 'OI-6302', 'HeI-5877', 'OIII', 'Hb', 'OIII-4363', 'Hg', 'Hd', 'H7', 'H8', 'H9', 'H10', 'NeIII-3867', 'OII', 'NeVI-3426', 'NeV-3346', 'MgII', 'CIV-1549', 'CIII-1906', 'CIII-1908', 'OIII-1663', 'HeII-1640', 'NIII-1750', 'NIV-1487', 'NV-1240', 'Lya'], continuum_list=None, fsps_templates=False, alf_template=False, lorentz=False)[source]

Generate a list of templates for fitting to the grism spectra

The different sets of continuum templates are stored in

>>> temp_dir = os.path.join(GRIZLI_PATH, 'templates')
Parameters:
fwhm : float

FWHM of a Gaussian, in km/s, that is convolved with the emission line templates. If too narrow, then can see pixel effects in the fits as a function of redshift.

line_complexes : bool

Generate line complex templates with fixed flux ratios rather than individual lines. This is useful for the redshift fits where there would be redshift degeneracies if the line fluxes for individual lines were allowed to vary completely freely. See the list of available lines and line groups in get_line_wavelengths. Currently, line_complexes=True generates the following groups:

Ha+NII+SII+SIII+He OIII+Hb OII+Ne

stars : bool

Get stellar templates rather than galaxies + lines

full_line_list : None or list

Full set of lines to try. The default is set in the global variable DEFAULT_LINE_LIST.

The full list of implemented lines is in get_line_wavelengths.

continuum_list : None or list

Override the default continuum templates if None.

fsps_templates : bool

If True, get the FSPS NMF templates.

Returns:
temp_list : dictionary of SpectrumTemplate objects

Output template list