magAB2Jansky: Convert between AB mag, Jansky and CGS

View source: R/photom.R

magAB2JanskyR Documentation

Convert between AB mag, Jansky and CGS

Description

Simple functions to convert between the common flux and mag systems.

Usage

magAB2Jansky(x)
Jansky2magAB(x)
magAB2CGS(x)
CGS2magAB(x)
Jansky2CGS(x)
CGS2Jansky(x)
AbsoluteToWHz(x)
WHzToAbsolute(x)

Arguments

x

Numeric vector; the value to be converted (in units of the LHS of the function name).

Details

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))

Value

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)

Author(s)

Aaron Robotham

See Also

photom, magABcalc

Examples

magAB2Jansky(20)
Jansky2magAB(magAB2Jansky(20))
Jansky2CGS(magAB2Jansky(20))

magAB2CGS(20)
CGS2magAB(magAB2CGS(20))
CGS2Jansky(magAB2CGS(20))

AbsoluteToWHz(-22)
WHzToAbsolute(AbsoluteToWHz(-22))

asgr/ProSpect documentation built on Feb. 21, 2025, 1:43 a.m.