lentil.radiometry.Blackbody.trim#

Blackbody.trim(tol=0.0001)#

Trim the zero or near-zero ends off the Spectrum object.

The first and last indices where the normalized Spectrum.value is greater than tol define the bounds of the retained portion of the Spectrum.

Parameters:

tol (float, optional) – Relative tolerance used to find ends. Default is 1e-4

Notes

If value is all zeros, no trim operation is performed and the Spectrum remains unchanged.