Previous topic

nmrglue.process.proc_lp.cadzow

Next topic

nmrglue.process.proc_lp.lp_1d

This Page

nmrglue.process.proc_lp.lp_model

nmrglue.process.proc_lp.lp_model(trace, slice=slice(None, None, None), order=8, mode='f', mirror=None, method='svd', full=False)

Use Linear Prediction to model a 1D NMR signal.

Parameter:

  • trace 1D trace of data, the FID.

  • slice slice object selecting region of slice to use in LP equation.

  • order Prediction order (Number of LP coefficients)

  • mirror None to process trace as provided, ‘0’ or ‘180’ forms a mirror

    image of the sliced trace to calculate the LP filter. ‘0’ should be used with data with no delay, ‘180’ with data with an initial half-point delay.

  • mode Mode to generate LP filter (f-forward,b-backward,

  • method Method to use to calculate the LP filter, choose from

    ‘svd’,’qr’,’choleskey’,’hsvd’.

  • full Set to True to return amplitudes and phases calculated

    by performing a least squares fitting. False returns only the damping (relaxation) factors and signal frequencies

Returns: when full==False: (damp,freq)
when full==True: (damp,freq,amp,phase)
  • damp List of damping factors
  • freq List of frequencies
  • amp List of amplitudes
  • phase List of phases

Notes:

When backward LP is used the signal roots are reflected before calculating model parameters.