If the wavelength binning of the direct beam function does not match the requested
wavelength_bins, perform a 1d interpolation of the function onto the bins.
Parameters
direct_beam (DataArray) – The DataArray containing the direct beam function (it should
have a dimension of wavelength).
wavelength_bins (Variable) – The binning in wavelength that the direct beam function
should be resampled to.