nmrglue.process.pipe_proc.mult

nmrglue.process.pipe_proc.mult(dic, data, r=1.0, i=1.0, c=1.0, inv=False, hdr=False, x1=1.0, xn='default')[source]

Multiple by a constant.

Parameters
dicdict

Dictionary of NMRPipe parameters.

datandarray

Array of NMR data.

rfloat

Constant to multiply real data by.

ifloat

Constant to multiply imaginary data by.

cfloat

Constant to multiply both real and imaginary data by.

invbool

True to multiply by the inverse of the constant.

hdrbool

True to use constant defined in dic.

x1int

First point of region to multiply constant by.

xnint or ‘default’

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

Returns
ndicdict

Dictionary of updated NMRPipe parameters.

ndatandarray

Array of NMR data which has been multiplied by a constant.

Notes

Parameter c is used even when r and i are defined. NMRPipe’s MULT function ignores c when r or i are defined.