load_templates¶
- grizli.utils.load_templates(fwhm=400, line_complexes=True, stars=False, full_line_list=['BrA', 'BrB', 'BrG', 'PfG', 'PfD', 'PaA', 'PaB', 'PaG', 'PaD', '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
- fwhmfloat, optional
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. Default is 400.
- line_complexesbool, optional
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
- starsbool, optional
Get stellar templates rather than galaxies + lines. Default is False.
- full_line_listNone or list, optional
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_listNone or list, optional
Override the default continuum templates if None.
- fsps_templatesbool, optional
If True, get the FSPS NMF templates. Default is False.
- alf_templatebool, optional
If True, include Alf templates. Default is False.
- lorentzbool, optional
If True, use Lorentzian line profiles instead of Gaussian. Default is False.
- Returns
- temp_listdictionary of
SpectrumTemplate
objects Output template list
- temp_listdictionary of