nmrglue.process.proc_base.gm

nmrglue.process.proc_base.gm(data, g1=0.0, g2=0.0, g3=0.0, inv=False, rev=False)[source]

Lorentz-to-Gauss apodization

Functional form of apodization window:

\[gm(x_i) = \exp(e - g^2)\]

Where:

\[\begin{split}e = pi * i * g1 \\ g = 0.6 * pi * g2 * (g3 * (size - 1) - i)\end{split}\]
Parameters :

data : ndarray

Array of NMR data.

g1 : float

Inverse exponential width.

g2 : float

Gaussian broadening width.

g3 : float

Location of Gaussian maximum.

inv : bool, optional

True for inverse apodization. False (default) for standard.

rev : bool, optional.

True to reverse the apodization before applying it to the data.

Returns :

ndata : ndarray

Array of NMR data with apodization applied.

Previous topic

nmrglue.process.proc_base.em

Next topic

nmrglue.process.proc_base.gmb

This Page