SpecConvolve_GL

SpecConvolve_GL#

excalibuhr.utils.SpecConvolve_GL(in_wlen, in_flux, out_res, gamma, in_res=1000000.0)[source]#

Convolve the input spectrum to a lower resolution with a Voigt kernel, i.e. the convolution of a Gaussian and a Lorentzian kernel.

Parameters:
  • in_wlen (array) – input wavelength array

  • in_flux (array) – input flux at high resolution

  • out_res (int) – output resolution (low)

  • gamma (float) – the scale parameter of a Lorentzian profile

  • in_res (int) – input resolution (high) R~w/dw

  • verbose (bool) – if True, print out the sigma of Gaussian filter used

Returns:

flux_V – Convolved spectrum

Return type:

array