mag2flux:
Convert from astronomical magnitudes to flux (ergs/s/cm^2/A)
Description
Convert from astronomical magnitudes to flux (ergs/s/cm^2/A)
Usage
mag2flux(mag, zero_pt=21.10, ABwave=F)
Arguments
mag
magnitude, scalar or vector
zero_pt
zero point level of the magnitude (default = 21.1)
ABwave
wavelength for conversion to Oke AB magnitudes, in Angstroms (optional)
Value
flux
flux, in erg cm-2 s-1 A-1, scalar or vector
Details
The default zero point of 21.1 mag is from Code et al. (1976). It is ignored of the ABwave parameter is supplied.
If ABwave is not supplied, the routine returns magnitudes given by the expression
mag <- -2.5*log10(flux) - zero_pt.
If ABwave is supplied, then the routine returns AB magnitudes from Oke and Gunn (1983) according to