lentil.radiometry.Blackbody.trim#
- Blackbody.trim(tol=0.0001)#
Trim the zero or near-zero ends off the
Spectrumobject.The first and last indices where the normalized
Spectrum.valueis greater thantoldefine the bounds of the retained portion of theSpectrum.- Parameters:
tol (float, optional) – Relative tolerance used to find ends. Default is 1e-4
Notes
If
valueis all zeros, no trim operation is performed and the Spectrum remains unchanged.