nmrglue.process.proc_bl.cbf_explicit

nmrglue.process.proc_bl.cbf_explicit(data, calc=slice(None, None, None), apply=slice(None, None, None))[source]

Constant Baseline correction from an explicit region of the data.

Parameters
data1D or 2D ndarray

Array of 1D or 2D NMR data.

calcslice, optional

Slice describing region to use for calculating the baseline correction.

applyslice, optional

Slice describing first-axis region(s) to which the baseline correction should be applied. Parameter is ignored for 1D data.

Returns
ndata1D or 2D ndarray

NMR data with a constant baseline subtracted.