devctrl.data.spectrum.transforms.auto_smoothen_spectra#
- auto_smoothen_spectra(sdata, columns, skipcols=['E', 'wl'], window_length_nm=30, window_length_eV=0.03, threshold=1.0, **savgol_kw)[source]#
Apply smoothing to all columns except skipcols. The window length of the Savitzky-Golay filter is given in nm or eV and determined from the data. If the data is in constant nm spacings, window_length_nm is used. If it is in constant eV spacings, window_length_eV is used.