cheb_templates¶
- grizli.utils.cheb_templates(wave, order=6, get_matrix=False, log=False, clip=0.0001, minmax=None)[source]¶
Chebyshev polynomial basis functions
- Parameters
- wavearray-like
The wavelength array.
- orderint
The order of the Chebyshev polynomial.
- get_matrixbool, optional
If True, return array data rather than template objects. Default is False.
- logbool, optional
If True, use the logarithm of the wavelength array. Default is False.
- clipfloat, optional
The clipping threshold for wavelengths outside the range. Default is 1.0e-4.
- minmaxarray-like, optional
The minimum and maximum values of the wavelength range. If not provided, the minimum and maximum values of the input wavelength array are used.
- Returns
- templatesOrderedDict
The Chebyshev polynomial templates.