bin_spectrum#
- shone.spectrum.bin_spectrum(output_wavelength, input_wavelength, input_flux)[source]#
Bin a spectrum from one wavelength grid to another.
This function is a JAX implementation of SpectRes [1] from A. C. Carnall [2].
- Parameters:
output_wavelength (array−like) – The target output grid of central wavelengths.
input_wavelength (array-like) – The input grid of central wavelengths.
input_flux (array-like) – The fluxes at each input wavelength.
- Returns:
binned_spectrum – Spectrum binned to a different resolution.
- Return type:
array-like
References
[2]Carnall, A. C. 2017, arXiv:1705.05165. doi:10.48550/arXiv.1705.05165