cwitools.modeling.doublet

cwitools.modeling.doublet(params, x, peaks)

Fittable doublet (Gaussian) emission line profile.

Parameters:
  • params (list) – The model parameters, following the form: blue_amplitude - amplitude of blue Gaussian component blue_center - center wavelength of blue component blue_std - standard deviation of blue (and red) components amplitude_radio - ratio of blue/red amplitudes
  • x (array-like) – Wavelength input, as float or array
  • peaks (float) – Wavelengths of the two peaks in the doublet, as a float tuple
Returns:

The spectrum of the doublet

Return type:

np.ndarray or float