Functions for conversion between flux and magnitude values. Functions are provided for conversion between flux in Janskys and AB magnitudes.
Some constants for approximate conversions between different magnitude scales are also provided:
JOHNSON_AB_*, for Johnson <-> AB magnitude
conversions, from
Frei and Gunn, Astronomical Journal 108, 1476 (1994),
Table 2
(1994AJ....108.1476F).
VEGA_AB_*, for Vega <-> AB magnitude
conversions, from
Blanton et al., Astronomical Journal 129, 2562 (2005),
Eqs. (5)
(2005AJ....129.2562B).
abToJansky( magAB )F/Jy=10(23-(AB+48.6)/2.5)
magAB (floating point): AB magnitude value
janskyToAb( fluxJansky )AB=2.5*(23-log10(F/Jy))-48.6
fluxJansky (floating point): flux in Jansky
luminosityToFlux( lumin, dist )F=lumin/(4 x Pi x dist2)
lumin (floating point): luminosity
dist (floating point): luminosity distance
fluxToLuminosity( flux, dist )lumin=(4 x Pi x dist2) F
flux (floating point): flux
dist (floating point): luminosity distance
JOHNSON_AB_VJOHNSON_AB_V.
JOHNSON_AB_BJOHNSON_AB_B.
JOHNSON_AB_BjJOHNSON_AB_Bj.
JOHNSON_AB_RJOHNSON_AB_R.
JOHNSON_AB_IJOHNSON_AB_I.
JOHNSON_AB_gJOHNSON_AB_g.
JOHNSON_AB_rJOHNSON_AB_r.
JOHNSON_AB_iJOHNSON_AB_i.
JOHNSON_AB_RcJOHNSON_AB_Rc.
JOHNSON_AB_IcJOHNSON_AB_Ic.
JOHNSON_AB_uPrimeJOHNSON_AB_uPrime=u'AB.
JOHNSON_AB_gPrimeJOHNSON_AB_gPrime=g'AB.
JOHNSON_AB_rPrimeJOHNSON_AB_rPrime=r'AB.
JOHNSON_AB_iPrimeJOHNSON_AB_iPrime=i'AB.
JOHNSON_AB_zPrimeJOHNSON_AB_zPrime=z'AB.
VEGA_AB_JVEGA_AB_J.
VEGA_AB_HVEGA_AB_H.
VEGA_AB_KVEGA_AB_K.