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_V
JOHNSON_AB_V
.
JOHNSON_AB_B
JOHNSON_AB_B
.
JOHNSON_AB_Bj
JOHNSON_AB_Bj
.
JOHNSON_AB_R
JOHNSON_AB_R
.
JOHNSON_AB_I
JOHNSON_AB_I
.
JOHNSON_AB_g
JOHNSON_AB_g
.
JOHNSON_AB_r
JOHNSON_AB_r
.
JOHNSON_AB_i
JOHNSON_AB_i
.
JOHNSON_AB_Rc
JOHNSON_AB_Rc
.
JOHNSON_AB_Ic
JOHNSON_AB_Ic
.
JOHNSON_AB_uPrime
JOHNSON_AB_uPrime
=u'AB.
JOHNSON_AB_gPrime
JOHNSON_AB_gPrime
=g'AB.
JOHNSON_AB_rPrime
JOHNSON_AB_rPrime
=r'AB.
JOHNSON_AB_iPrime
JOHNSON_AB_iPrime
=i'AB.
JOHNSON_AB_zPrime
JOHNSON_AB_zPrime
=z'AB.
VEGA_AB_J
VEGA_AB_J
.
VEGA_AB_H
VEGA_AB_H
.
VEGA_AB_K
VEGA_AB_K
.