nmrglue.process.proc_bl.med

nmrglue.process.proc_bl.med(data, mw=24, sf=16, sigma=5.0)[source]

Median baseline correction.

Algorith described in: Friedrichs, M.S. JBNMR 1995 5 147-153.

Parameters
data1D or 2D ndarray

Array of 1D or 2D NMR data.

mwfloat

Median window size in pts.

sffloat

Smooth window size in pts.

sigmafloat

Standard-deviation of convoluted Gaussian window.

Returns
ndata1D or 2D ndarray

NMR data with the median baseline subtracted.