View source: R/emissionLines.R
emissionLines | R Documentation |
Code to generate emission line specra based on Levesque, Kewley & Larson (2010).
emissionLines(Ha_lum=NULL, Hb_lum=NULL, Hlines_lum=NULL, All_lum=NULL, SFR=NULL,
Z = 0.02, q = NULL, veldisp = 50, LSF = NULL, z_LSF = 0, lumscale = 21612724,
log = TRUE, range = 5, res = 0.5, LKL10 = NULL)
Ha_lum |
Numeric scalar; scaling to be applied to Halpha line, all other lines are scaled relative to this. Uses/requires |
Hb_lum |
Numeric scalar; scaling to be applied to Hbeta line, all other lines are scaled relative to this. Uses/requires |
Hlines_lum |
Numeric scalar; scaling to be applied all Hydrogen lines, all other lines are scaled relative to this. Uses/requires |
All_lum |
Numeric scalar; scaling to be applied all emission lines. Uses/requires |
SFR |
Numeric scalar; scaling to be applied to Halpha line using |
Z |
Numeric scalar; metallicity. If log=TRUE this will be interpolated in log space if it falls between templates. |
q |
Numeric scalar; radiation field. If log=TRUE this will be interpolated in log space if it falls between templates. If left as the default of NULL then the function |
veldisp |
Numeric scalar; velocity dispersion (km/s). |
LSF |
Function, numeric matrix/data.frame, numeric scalar; describes the instrumental line spread function is km/s. This should either scalar (constant throughout), a two column matrix/data.frame (wavelength in Ang, LSF in km/s) or a function that take wavelength (Ang) as an input and returns LSF in km/s. NULL means this is ignored (effectively same as setting to 0, but more efficient). |
z_LSF |
Numeric scalar; the redshift the LSF is effectively provided at. This is because instruments provide and observed frame LSF, so to compute what it is in our intrinsic frame we need to know the redshift we are working at. If LSF is NULL, this is not required. |
lumscale |
Numeric scalar; luminosity scaling to use in |
log |
Logical; determines if the interpolation is done in log space when using |
range |
Numeric scalar; how many sigma either side of the line should the velocity dispersion spread flux be evaluated (starts to become inaccurate if lower than 5). |
res |
Numeric scalar; the relative resolution of the line evaluation in fractions of sigma. |
LKL10 |
List; LKL template to use. If LKL10=NULL then the appropriate template is loaded internally (this is the safest option). To speed things up the user can pass in the appropriate |
Can be used by users directly (perhaps to generate your own line features to add onto a target spectrum), or more generally.
Data.frame with two columns:
wave |
Wavelength (Angstroms). |
lum |
Emission features scaled as requested (Lum/Ang). |
Aaron Robotham
Levesque, Kewley & Larson, 2010, AJ, 139, 712
LKL10
, SFR2Lum
, Z2q
, interp_param
plot(emissionLines(Ha_lum=1, veldisp=100), type='l', xlim=c(6400,6800), ylim=c(0,0.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.