TemplateError

class eazy.templates.TemplateError(file='templates/TEMPLATE_ERROR.eazy_v1.0', arrays=None, filter_wavelengths=[5500.0], scale=1.0)[source]

Bases: object

Template error function with spline interpolation at arbitrary redshift.

Parameters:
filestr

File containing the template error function definition (columns of wavelength in Angstroms and the TEF).

arraysoptional, (wave, TEF)

Set from arrays rather than reading from file.

filter_wavelengthslist

List of filter pivot wavelengths (observed-frame Angstroms).

scalefloat

Scale factor multiplied to TEF array, e.g., the TEMP_ERR_A2 parameter.

Attributes:
te_x, te_yarrays

The input wavelength and TEF arrays.

min_wavelength, min_wavelengthfloat

Min/max of the wavelengths in te_x.

clip_lo, clip_hifloat

Extrapolation limits to use if redshifted filters fall outside defined te_x array

Methods Summary

__call__(z[, limits])

Interpolate TEF arrays at a specific redshift

interpolate([filter_wavelength, z])

filter_wavelength is observed wavelength of photometric filters.

Methods Documentation

__call__(z, limits=None)[source]

Interpolate TEF arrays at a specific redshift

Parameters:
zfloat

Redshift

limitsNone, (float, float)

Extrapolation limits. If not specified, get from clip_lo and clip_hi attributes.

interpolate(filter_wavelength=5500.0, z=1.0)[source]

filter_wavelength is observed wavelength of photometric filters. But these sample the rest wavelength of the template error function at lam/(1+z)