barak.extinction.starburst_Calzetti00¶
- barak.extinction.starburst_Calzetti00(wa, Rv=4.05)[source]¶
Dust extinction in starburst galaxies using the Calzetti relation.
Find the extinction as a function of wavelength for the given E(B-V) using the relation from Calzetti et al. R_v’ = 4.05 is assumed (see equation [5] of Calzetti et al. 2000 ApJ, 533, 682) E(B-V) is the extinction in the stellar continuum.
The wavelength array wa must be in Angstroms and sorted from low to high values.
Parameters : wa : array_like
Array of wavelengths in Angstroms at which to calculate the extinction.
Rv : float (default 4.05)
Constant determining the slope of the extinction law.
Returns : AlamAv : ndarray of floats, shape (N,)
A(lambda)/A(V) at each input wavelength.
References
Calzetti et al. 2000 ApJ, 533, 682:
Examples
wa = np.arange(1500, 3300, 0.1) tau = starburst_Calzetti00(wa, 0.08)
# Assume a power law for the input flux flux = (wa/1500) ** -1.5 extincted_flux = flux * np.exp(-tau)