nmrglue.process.pipe_proc.ps

nmrglue.process.pipe_proc.ps(dic, data, p0=0.0, p1=0.0, inv=False, hdr=False, noup=False, ht=False, zf=False, exp=False, tc=0.0)[source]

Phase shift

Parameters :

dic : dict

Dictionary of NMRPipe parameters.

data : ndarray

Array of NMR data.

p0 : float

Zero order phase in degrees.

p1 : float

First order phase in degrees.

inv : bool

True to perform inverse phase correction.

hdr : bool

True to use phasing parameters from dic.

noup : bool

True to not update phasing paramters in returned ndic.

ht : bool

True to perform a Hilbert transform to reconstruction imaginaries before phasing.

zf : bool

True to zero fill before applied Hilbert transform.

exp : bool

True to perform exponential phase correction. False performs linear phase correction.

tc : float, optional

Exponential decay constant. User when exp is True.

Returns :

ndic : dict

Dictionary of updated NMRPipe parameters.

ndata : ndarray

Array of NMR data which has been phased.

Notes

When inv is True this function will correctly invert an expoenential phase correction, NMRPipe’s PS function does not. In addition, FDFNP0 and FDFNP1 are updated unless noup=True. There are not rs and ls parameter, if the data need to be shifted before phasing use the rs() or :py:func`ls` function before using this function.

Previous topic

nmrglue.process.pipe_proc.di

Next topic

nmrglue.process.pipe_proc.tp

This Page