nmrglue.process.proc_autophase._ps_peak_minima_score

nmrglue.process.proc_autophase._ps_peak_minima_score(ph, data, peak_width)[source]

Phase correction using simple minima-minimisation around highest peak

This is a naive approach but is quick and often achieves reasonable results. The optimisation is performed by finding the highest peak in the spectra (e.g. TMSP) and then attempting to reduce minima surrounding it.

Parameters
phtuple

Current p0 and p1 values

peak_widthint

Lookup width

datandarray

Array of NMR data.

Returns
scorefloat

Value of the objective function (phase score)