uvvis.fit_OO_spectrum

uvvis.fit_OO_spectrum(wl, spectrum, show=False, delta=False)

Fit a single peaked spectrum with a gaussian and a constant offset.

Parameters:
  • wl (array) – Wavelength axis.
  • spectrum (array) – Spectrum to fit (same shape as wl).
  • show (bool) – If True, show the fitted spectrum in a new figure (False by default).
  • delta (bool) – If True, return the errors along with the fit parameters.
Returns:

Fit parameters [offset, amplitude, center, fwhm].