nmrglue.process.proc_base.conv

nmrglue.process.proc_base.conv(data, kern=[1.0], m='wrap', c=0.0)[source]

Convolute data with kernel.

Real and imaginary components of data are convolved seperately.

Parameters
datandarray

Array of NMR data.

kernarray_like

Convolution kernel

m{‘reflect’, ‘constant’, ‘nearest’, ‘wrap’}

How edges of convolution are dealt with.

cfloat

Constant value for use when m is ‘constant’.

Returns
ndatandarray

NMR data which has been convolved with the given kernel.