nmrglue.process.pipe_proc.add

nmrglue.process.pipe_proc.add(dic, data, r=0.0, i=0.0, c=0.0, ri=False, x1=1.0, xn='default')[source]

Add a constant

Parameters :

dic : dict

Dictionary of NMRPipe parameters.

data : ndarray

Array of NMR data.

r : float

Constant to add to real data.

i : float

Constant to add to imaginary data.

c : float

Constant to add to both real and imaginary data.

ri : bool

True to add real and imaginary data into real channel.

x1 : int

First point of region to add constant to.

xn : int or ‘default’

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

Returns :

ndic : dict

Dictionary of updated NMRPipe parameters.

ndata : ndarray

Array of NMR data with a constant added.

Notes

Parameter c is added to the real and imaginary data even when r and i are defined. NMRPipe’s ADD function ignores c when r or i are defined.

Previous topic

nmrglue.process.pipe_proc.sol

Next topic

nmrglue.process.pipe_proc.dx

This Page