lentil.radiometry.Spectrum.trim#
- Spectrum.trim(tol=0.0001)[source]#
- Trim the zero or near-zero ends off the - Spectrumobject.- The first and last indices where the normalized - Spectrum.valueis greater than- toldefine 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 - valueis all zeros, no trim operation is performed and the Spectrum remains unchanged.