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 :

dic : dict

Dictionary of NMRPipe parameters.

data : ndarray

Array of NMR data.

r : float

Constant to multiply real data by.

i : float

Constant to multiply imaginary data by.

c : float

Constant to multiply both real and imaginary data by.

inv : bool

True to multiply by the inverse of the constant.

hdr : bool

True to use constant defined in dic.

x1 : int

First point of region to multiply constant by.

xn : int or ‘default’

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

Returns :

ndic : dict

Dictionary of updated NMRPipe parameters.

ndata : ndarray

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.

Previous topic

nmrglue.process.pipe_proc.mir

Next topic

nmrglue.process.pipe_proc.rev

This Page