uvex_transients.models.core.lightcurve_metrics.peak_luminosity#

uvex_transients.models.core.lightcurve_metrics.peak_luminosity(t: Quantity, luminosity: Quantity) → tuple[Quantity, Quantity][source]#

Reduce each light curve to its peak.

The peak is found on the grid and then refined by the parabola through the grid point and its two neighbours, in \(\ln L\) against \(\ln t\), which removes most of the error from the spacing of the grid. A grid too coarse to resolve the peak still underestimates it. Where the parabola is not a maximum (a peak at the end of the grid, a neighbour with no light), the grid point itself is returned.

Parameters:
  • t (Quantity) – Times, shape (T,), increasing and positive.

  • luminosity (Quantity) – Luminosities, shape (N, T).

Returns:

  • peak (Quantity) – The peak luminosity of each draw, shape (N,). NaN for a draw with no valid epoch.

  • t_peak (Quantity) – The time of the peak, shape (N,).