read_templates_file

eazy.templates.read_templates_file(templates_file=None, as_dict=False, **kwargs)[source]

Read templates listed in templates_file.

Parameters:
templates_filestr

Filename of the ascii file containing the templates list. Has format like

1 templates/fsps_full/tweak_fsps_QSF_12_v3_001.dat 1.0
2 templates/fsps_full/tweak_fsps_QSF_12_v3_002.dat 1.0
...
N {path} {scale}

where scale is the factor needed to scale the template wavelength array to units of Angstroms.

as_dictbool

Return dictionary rather than a list (e.g., for grizli).

kwargsdict

Extra keyword arguments are passed to Template with file and to_angstrom keywords set automatically.

Returns:
templateslist

List of eazy.templates.Template objects (dict if as_dict)