Finds the channels at the saturation limit of the detector, for each spectrum and for each wavelength. Saturated lines are clipped, so their intensity and width are wrong and they respond nonlinearly to concentration.
Value
A list with two tibbles:
spectra: for each spectrum (row), the numbern_saturatedand fraction of saturated channels;channels: for each channel saturated in at least one spectrum, itswavelength(from the column names;NAif they are not numeric), columnindex, and the number and fraction of saturated spectra.
Examples
data(forageLIBS)
sat <- saturation_summary(forageLIBS[-(1:14)], limit = 65535)
sat$channels
#> # A tibble: 6 × 4
#> wavelength index n_spectra fraction
#> <dbl> <int> <dbl> <dbl>
#> 1 388. 2229 30 0.0815
#> 2 393. 2297 48 0.130
#> 3 393. 2298 133 0.361
#> 4 397. 2339 82 0.223
#> 5 399. 2368 124 0.337
#> 6 399. 2369 46 0.125
