Deuteron Peak Fit

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.

Data
Fit function

No signal loaded.

Starting values

Loading Python (Pyodide)…

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.

ParameterMeaningValueVaryMinMax

Signal and fit

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.

Vector polarization P
–
Resultvalue± error Vector P– Tensor Pzz– Population ratio r–
Reduced χ²– Points / varied– Evaluations– Time–

Load the example or open a file to see the signal.

signal starting values fit residual (lower pane)

The same fit in Python

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.

What the fit does