uvex_transients.utils.phot_utils.band_luminosity_curve#

uvex_transients.utils.phot_utils.band_luminosity_curve(eval_log_luminosity: Callable[[...], NDArray], parameters: Mapping[str, NDArray], t: NDArray, bandpass: SpectralElement, *, d_ln_nu: float = 0.002) → NDArray[float64][source]#

Evaluate the rest-frame luminosity in a band for each of many draws, on a grid of times.

Parameters:
  • eval_log_luminosity (callable) – eval_log_luminosity(nu, t, **parameters): the natural log of the rest-frame \(L_\nu\) in cgs, for frequencies nu (Hz) and times t (s) that broadcast against the parameters.

  • parameters (Mapping[str, numpy.ndarray]) – The parameters in cgs units, each of shape (N,), one entry per draw.

  • t (numpy.ndarray) – Rest-frame times in seconds, shape (T,).

  • bandpass (synphot.SpectralElement) – The band that is integrated over; see band_integration_weights.

  • d_ln_nu (float, optional) – Spacing of the frequency grid in \(\ln\nu\).

Returns:

\(L_\mathrm{band}\) in erg/s, shape (N, T). NaN where the model is NaN at a frequency the band covers.

Return type:

numpy.ndarray