magAB2Jansky | R Documentation |
Simple functions to convert between the common flux and mag systems.
magAB2Jansky(x)
Jansky2magAB(x)
magAB2CGS(x)
CGS2magAB(x)
Jansky2CGS(x)
CGS2Jansky(x)
AbsoluteToWHz(x)
WHzToAbsolute(x)
x |
Numeric vector; the value to be converted (in units of the LHS of the function name). |
For clarity the conversions used are provided below:
magAB2Jansky = 10^(-0.4*(magAB-8.9))
Jansky2magAB = -2.5*log10(Jansky)+8.9
magAB2CGS = 10^(-0.4*(magAB+48.6))
CGS2magAB = -2.5*log10(CGS)-48.6
Jansky2CGS = Jansky*1e-23
CGS2Jansky = CGS*1e23
Explictly for absolute magnitudes we can convert to the W/Hz convention. This cannot be used for general magnitudes (or at least, the outputs will not make much sense).
AbsoluteToWHz = 4*pi*((3.086e+17)^2)*1e-26*magAB2Jansky(Absolute)
WHzToAbsolute = Jansky2magAB(WHz/(4*pi*((3.086e+17)^2)*1e-26))
Numeric vector; the converted value (in units of the RHS of the function name).
Where output units are:
AB mag (m = -2.5.log10(f[CGS]) - 48.60)
CGS (erg/s/cm^2/Hz = 1e-23 W/m^2/Hz)
Jansky (1 Jy = 1e-26 W/m^2/Hz)
Aaron Robotham
photom
, magABcalc
magAB2Jansky(20)
Jansky2magAB(magAB2Jansky(20))
Jansky2CGS(magAB2Jansky(20))
magAB2CGS(20)
CGS2magAB(magAB2CGS(20))
CGS2Jansky(magAB2CGS(20))
AbsoluteToWHz(-22)
WHzToAbsolute(AbsoluteToWHz(-22))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.