redback.utils.abmag_to_flambda

redback.utils.abmag_to_flambda(mag, lam_eff)[source]

Converts an AB magnitude to flux density in erg/s/cm^2/Å using the effective wavelength for the band.

In the AB system, the flux density per unit frequency is:

f_nu = 10**(-0.4*(mag+48.6)) [erg/s/cm^2/Hz]

To obtain f_lambda [erg/s/cm^2/Å]:

f_lambda = f_nu * (c / λ^2) / 1e8,

where λ is the effective wavelength (in cm) and 1e8 converts from per cm to per Å.