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
- dicdict
Dictionary of NMRPipe parameters.
- datandarray
Array of NMR data.
- rfloat
Constant to add to real data.
- ifloat
Constant to add to imaginary data.
- cfloat
Constant to add to both real and imaginary data.
- ribool
True to add real and imaginary data into real channel.
- x1int
First point of region to add constant to.
- xnint or ‘default’
Last point of region to add constant to. ‘default’ specifies the last point.
- Returns
- ndicdict
Dictionary of updated NMRPipe parameters.
- ndatandarray
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.