magABcalc | R Documentation |
Converts spectrum to a flux measurement in a filter (CGS or Jansky) or AB magnitude.
magABcalc(wave, flux, filter = "r_VST")
CGScalc(wave, flux, filter='r_VST')
Janskycalc(wave, flux, filter='r_VST')
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. |
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.
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).
Aaron Robotham
photom
, bandpass
, getfilt
, SFHfunc
fluxBC03=Lum2Flux(BC03lr$Wave, BC03lr$Zspec[[5]][161,]*1e10)
magABcalc(fluxBC03)
CGScalc(fluxBC03)
Janskycalc(fluxBC03)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.