Fit a spin-1 NMR signal to the Dulya lineshape of quadrupole-split Pake doublets and read off the vector and tensor polarization. The fit runs in your browser with the same Python code as the DeuteronPeakFit repository, using lmfit in Pyodide. Your data stays on your computer. Start from the Run Group C example or open your own signal, adjust the starting values until the dashed curve is close, then run the fit.
No signal loaded.
How well the fit works depends on the starting values. Edit them and the dashed curve on the plot below redraws the model at those values. Untick Vary to hold a parameter fixed, and set limits to keep it in range. Frequencies (ωL, ωQ) use the same units as your frequency data.
| Parameter | Meaning | Value | Vary | Min | Max |
|---|
The polarization comes from the fitted population ratio r: P = (r² − 1)/(r² + r + 1) and Pzz = (r − 1)²/(r² + r + 1), with uncertainties carried through from lmfit's error on r.
Load the example or open a file to see the signal.
lmfit could not estimate uncertainties for this fit, because the covariance matrix was not available. Starting closer to the answer, holding a poorly determined parameter fixed, or setting limits can help.
| Parameter | Start | Fitted | Std. error |
|---|
This script runs the fit set up on this page with the module directly. It changes as you change the signal, fit function and starting values.
fit uses the absorption part only.fit_complex adds the dispersion part, computed analytically as the Kramers–Kronig partner of
the absorption (Kisselev et al., NIM A 354 (1995) 249; McClellan, EPJ A 61 (2025) 176). The two are mixed
by the phase angle, in radians. fit_complex_cubic also fits a cubic baseline in frequency.