magABcalc: Filter Flux and Magnitude

View source: R/photom.R

magABcalcR Documentation

Filter Flux and Magnitude

Description

Converts spectrum to a flux measurement in a filter (CGS or Jansky) or AB magnitude.

Usage

magABcalc(wave, flux, filter = "r_VST")
CGScalc(wave, flux, filter='r_VST')
Janskycalc(wave, flux, filter='r_VST')

Arguments

wave

Numeric vector; observed wavelength in Angstroms. For convenience, if a two column matrix or data frame is supplied then the first column is taken to be wave and the second is taken to be flux.

flux

Numeric vector; flux in erg/s / cm^2 / Angstrom spectral units.

filter

Name of filter to use.

Details

Depending on the format of the target photometry it may be more appropriate to work in AB mag, CGS or Jansky (1e-26 W/m^2/Hz). As a reminder, Jansky is simply CGS*1e23, which scales things to nearer unity for typical astrophysical sources. Remember here that 1W = 1e7 erg/s.

Value

Numeric scalar; flux in target units, i.e. AB mag (m = -2.5.log10(f[CGS]) - 48.60), CGS (erg/s/cm^2/Hz = 1e-23 W/m^2/Hz) or Jansky (1 Jy = 1e-26 W/m^2/Hz).

Author(s)

Aaron Robotham

See Also

photom, bandpass, getfilt, SFHfunc

Examples

fluxBC03=Lum2Flux(BC03lr$Wave, BC03lr$Zspec[[5]][161,]*1e10)

magABcalc(fluxBC03)
CGScalc(fluxBC03)
Janskycalc(fluxBC03)

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