uvex_transients.phase_space.sampling.canonical.fred_time_scales#

uvex_transients.phase_space.sampling.canonical.fred_time_scales(rise_ratio: float, fade_mag: float) → tuple[float, float][source]#

Return the half-decline time and the fade time of a FRED light curve, in units of its decay time \(\tau_2\).

With \(\tau_1=r\tau_2\) and times in units of \(\tau_2\), the light curve is \(g(t)=\exp(2\sqrt r - r/t - t)\), with its peak, \(g=1\), at \(t=\sqrt r\).

Parameters:
  • rise_ratio (float) – The ratio \(r=\tau_1/\tau_2\), positive.

  • fade_mag (float) – The depth, in magnitudes below the peak, that the fade time is the time to reach.

Returns:

  • half_time (float) – The time from the peak until \(g\) falls to 1/2, in units of \(\tau_2\).

  • fade_time (float) – The time since explosion at which \(g\) has fallen by fade_mag magnitudes, in units of \(\tau_2\).