nmrglue.process.pipe_proc.zd

nmrglue.process.pipe_proc.zd(dic, data, wide=1.0, x0=1.0, slope=0, func=0, g=1)[source]

Zero diagonal band.

Parameters
dicdict

Dictionary of NMRPipe parameters.

datandarray

Array of NMR data.

wideint

Width of the diagonal band in points.

x0int

Starting location of the diagonal band in points.

slopefloat

Slope of the diagonal band (X/Y ratio). A value of 0 will determine the slope automatically.

func{0, 1, 2, 3}

Function to perform zero-ing with. 0 for a boxcar window, 1 for a triangle window, 2 for a sine bell, 3 for a Gaussian.

gfloat

Width of Gaussian window in points. Only used if func is 3.

Returns
ndicdict

Dictionary of updated NMRPipe parameters.

ndatandarray

Array of NMR data with a diagonal band zero-ed.