uvex_transients.models.core.lightcurve_metrics.decline_time#

uvex_transients.models.core.lightcurve_metrics.decline_time(t: Quantity, luminosity: Quantity, fraction: float = 0.5) → Quantity[source]#

Measure the time from the peak until the luminosity first falls to a fraction of it.

The crossing is interpolated linearly in \(\ln L\) against \(\ln t\) between the two grid points that bracket it.

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

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

  • fraction (float, optional) – The fraction of the peak, between 0 and 1. The default of 0.5 gives the half-decline time \(t_{1/2}\).

Returns:

The decline time of each draw, shape (N,). NaN where the luminosity never falls that far within the grid (the draw is censored), or the draw has no valid epoch.

Return type:

Quantity

Raises:

ValueError – If fraction is not between 0 and 1.