nmrglue.process.pipe_proc.set

nmrglue.process.pipe_proc.set(dic, data, r='a', i='a', c='a', x1=1.0, xn='default')[source]

Set data to a constant.

Parameters :

dic : dict

Dictionary of NMRPipe parameters.

data : ndarray

Array of NMR data.

r : float, or ‘a’

Constant to set real data to. “a” sets real data to 0 unless c is defined.

i : float or ‘a’

Constant to set imaginary data to. “a” sets imaginary data to 0 unless c is defined.

c : float

Constant to set both real and imaginary data by. ‘a’ sets both channels to 0 unless r or i in defined.

x1 : int

First point of region to set to the constant.

xn : int or ‘default’

Last point of region to set to the constant. ‘default’ specifies the last point.

Returns :

ndic : dict

Dictionary of updated NMRPipe parameters.

ndata : ndarray

Array of NMR data which has been set to a constant.

Previous topic

nmrglue.process.pipe_proc.rev

Next topic

nmrglue.process.pipe_proc.shuf

This Page