This is development documentation. Some features are not available in the stable release. View stable documentation.

spectrochempy.snip

snip(dataset, snip_width=50)[source]

Perform the Simple Non-Iterative Peak (SNIP) detection algorithm.

See Ryan et al. [1988].

Parameters:
  • dataset (NDDataset) – The input data.

  • snip_width (int, optional, default:50) – The width of the window used to determine the baseline using the SNIP algorithm.

Returns:

NDDataset – The baseline corrected dataset.

Masked input regions are preserved in the returned dataset.

See also

Baseline

Manual baseline correction processor.

get_baseline

Compute a baseline using the Baseline class.

basc

Make a baseline correction using the Baseline class.

asls

Perform an Asymmetric Least Squares Smoothing baseline correction.

snip

Perform a Simple Non-Iterative Peak (SNIP) detection algorithm.

rubberband

Perform a Rubberband baseline correction.

autosub

Perform an automatic subtraction of reference.

detrend

Remove a polynomial trend along the last dimension of a dataset.