nmrglue.process.pipe_proc.sign

nmrglue.process.pipe_proc.sign(dic, data, ri=False, r=False, i=False, left=False, right=False, alt=False, abs=False, sign=False)[source]

Sign manipulation utilities

Parameters
dicdict

Dictionary of NMRPipe parameters.

datandarray

Array of NMR data.

ribool

True to negate all data points.

rbool

True to negate real data points.

ibool

True to negate imaginary data points.

leftbool

True to negate the left half of the data.

rightbool

True to negate the right half of the data.

altbool

True to negate alternating data points.

absbool

True to replace both real and imaginary data with it’s absolute value.

signbool

True to replace data with the sign (-1 or 1) of the data.

Returns
ndicdict

Dictionary of updated NMRPipe parameters.

ndatandarray

Array of NMR data after sign manipulation.

Notes

All sign manupulation modes set True are applied in the order they appear in the function parameter list.