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
- datandarray
Array of NMR data.
- g1float
Inverse exponential width.
- g2float
Gaussian broadening width.
- g3float
Location of Gaussian maximum.
- invbool, optional
True for inverse apodization. False (default) for standard.
- revbool, optional.
True to reverse the apodization before applying it to the data.
- Returns
- ndatandarray
Array of NMR data with apodization applied.