lentil.radiometry.Spectrum.ends#
- Spectrum.ends(tol=0.0001)[source]#
Locate the indices defining the continuous nonzero portion of the
value
The first and last indices where the normalized
Spectrum.value
is greater thantol
define the bounds of the retained portion of theSpectrum
.- Parameters:
tol (float, optional) – Relative tolerance used to find ends. Default is 1e-4