uvex_transients.models.supernovae.IIb.MoragShockCoolingBlackbodySED.mag_cgs#

classmethod MoragShockCoolingBlackbodySED.mag_cgs(nu: NumericalInput, t: NumericalInput, redshift: NumericalInput, luminosity_distance: NumericalInput, *, log_attenuation: NumericalInput | None = None, **parameters: CGSParameterValue) → FloatResult#

Apparent AB magnitude: \(m_\mathrm{AB} = -2.5 \log_{10}(F_\nu / F_{\mathrm{AB},0})\).

\(F_\nu\) is flux_cgs()’s observed flux density; \(F_{\mathrm{AB},0} = 3631\) Jy. See flux_log_cgs() for the meaning of log_attenuation.

Parameters:
  • nu (array-like) – Observed frequency, in Hz.

  • t (array-like) – Observed time since explosion, in seconds.

  • redshift (array-like) – Cosmological redshift, dimensionless.

  • luminosity_distance (array-like) – Luminosity distance, in cm.

  • log_attenuation (array-like, optional) – See flux_log_cgs().

  • **parameters – This model’s parameter values, in cgs units. See flux_log_cgs().

Returns:

The apparent AB magnitude. A scalar is returned if the result is 0-dimensional.

Return type:

numpy.ndarray or float