nmrglue.process.pipe_proc.med

nmrglue.process.pipe_proc.med(dic, data, nw=24, sf=16, sigma=5.0)[source]

Median baseline correction

Parameters
dicdict

Dictionary of NMRPipe parameters.

datandarray

Array of NMR data.

nwint

Median window size in points.

sfint

Smoothing filter size in points.

sigmafloat

Gaussian convolution width.

Returns
ndicdict

Dictionary of updated NMRPipe parameters.

ndatandarray

Array of NMR data with an median baseline correction applied.

Notes

This function applies Friendrich’s model-free baseline flatting algorithm (Friendrichs JBNMR 1995 5 147-153). NMRPipe applies a different and unknown algorithm.