STmag_from_flux¶
- beast.observationmodel.phot.STmag_from_flux(v)[source]¶
Convert to ST magnitude from erg/s/cm2/AA (Flambda)
mag = -2.5 log_{10}(F) - 21.10
M0 = 21.10 F0 = 3.6307805477010028 10^{-9} erg/s/cm2/AA
- Parameters:
- v: np.ndarray[float, ndim=N], or float
array of fluxes
- Returns:
- mag: np.ndarray[float, ndim=N], or float
array of magnitudes