Dale_interp: Interpolate the Dale 2014 Templates

View source: R/dust.R

Dale_interpR Documentation

Interpolate the Dale 2014 Templates

Description

Interpolates between non-computed values of AGNfrac and alpha_SF. This is useful when creating a generic generative model of a galaxy SED, where it can harm the sampling to have strictly discretised values for variables we wish to sample over.

Usage

Dale_interp(alpha_SF = 1.5, AGNfrac = 0, type = "NormTot", Dale = NULL)

Arguments

alpha_SF

Numeric scalar; desired interpolated alpha slope of the star forming population. Lower values mean hotter dust.

AGNfrac

Numeric scalar; desired interpolated AGN fraction linearly mixed in energy over the range 5-20 microns (see Dale 2014).

type

Character scalar; type of Dale template to interpolate. One of: Orig, Msol, NormTot, NormAGN, NormSFR (see Dale).

Dale

Pass in the Dale dust library directly. Must be one of Dale_Orig, Dale_Msol, Dale_NormTot, Dale_NormAGN, Dale_NormSFR. Doing this speeds up the compute time, since there is no need to lazy load from the package.

Details

This function does a simple 2D bilinear interpolation to create templates for values of AGNfrac and alpha_SF that are not precisely provided by Dale.

Value

Two column data.frame containing the wavelength (Wave) and the interpolated luminosity values (Aspec) in the same units as the input Dale dust library (from argument Dale).

Author(s)

Aaron Robotham

References

Dale et al, 2014, ApJ, 784, 11

See Also

Dale, interp_param

Examples

#Example output showing also the 4 surrounding interpolation points used.
temp=Dale_interp(1.53125, 0.025)

plot(temp, log='x', type='l', col='red')
lines(Dale_Orig$Wave, Dale_Msol$Aspec[[1]][24,])
lines(Dale_Orig$Wave, Dale_Msol$Aspec[[1]][25,])
lines(Dale_Orig$Wave, Dale_Msol$Aspec[[2]][24,])
lines(Dale_Orig$Wave, Dale_Msol$Aspec[[2]][25,])

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