SpecConvolve#
- excalibuhr.utils.SpecConvolve(in_wlen, in_flux, out_res, in_res=1000000.0, verbose=False)[source]#
Convolve the input spectrum to a lower resolution with a Gaussian kernel.
- Parameters:
in_wlen (array) – input wavelength array
in_flux (array) – input flux at high resolution
out_res (int) – output resolution (low)
in_res (int) – input resolution (high) R~w/dw
verbose (bool) – if True, print out the sigma of Gaussian filter used
- Returns:
flux_LSF – Convolved spectrum
- Return type:
array