uvex_transients.utils.phot_utils.flux_to_ab_mag#

uvex_transients.utils.phot_utils.flux_to_ab_mag(flux_density: ArrayLike) → NDArray[float64][source]#

Convert a flux density to an AB magnitude.

Parameters:

flux_density (array-like) – Flux density in erg/s/cm^2/Hz. Zero is allowed.

Returns:

\(-2.5\\log_{10}(F_\nu/F_0)\) for the AB zero point \(F_0\). Zero flux is an infinitely faint magnitude, not an error.

Return type:

numpy.ndarray