nmrglue.process.proc_base.filter_generic

nmrglue.process.proc_base.filter_generic(data, filter, s=(1, 1), m='wrap', c=0.0)[source]

Apply a generic filter.

Real and imaginary components are filtered seperately.

Parameters :

data : ndarray

Array of NMR data.

filter : functions

Python function which takes an array and returns a single value.

s : tuple

Shape or size taken for each step of the filter.

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

How edges of are dealt with.

c : float

Constant value for use when m is ‘constant’.

Returns :

ndata : ndarray

Filtered NMR data.

Previous topic

nmrglue.process.proc_base.filter_sum

Next topic

nmrglue.process.proc_base.nmr_reorder

This Page