kilopop.macronovae_wrapper.compute_planck_function
- kilopop.macronovae_wrapper.compute_planck_function(lambda_cm, temperature)[source]
Planck function of wavelength.
- Parameters:
lambda_cm (nd.array) – Wavelengths [cm]. Expected shape is (n_wave,).
temperature (nd.array) – Time-series of temperatures [K] for spectra generation. Expected shape is (n_time,).
- Returns:
planck_values – The value of the Planck function for a given temp. and wavelength. Output shape is (n_time, n_wave).
- Return type:
nd.array