synthesizer.emission_models.attenuation.igm¶
A module for computing Intergalactic Medium (IGM) absorption.
This module contains classes for computing IGM absorption from Inoue et al. (2014) and Madau et al. (1996) models.
These are used when observer frame fluxes are computed using Sed.get_fnu(…) and are not designed to be used directly by the user.
Classes
- class synthesizer.emission_models.attenuation.igm.IGMBase(name)[source]¶
Base class for IGM absorption models.
- name¶
Name of the model.
- Type:
str
- get_transmission(redshift, lam_obs)[source]¶
Compute the IGM transmission.
- Parameters:
redshift (float) – Redshift to evaluate IGM absorption.
lam_obs (array) – Observed-frame wavelengths in Angstroms.
- Returns:
IGM transmission.
- Return type:
array
- plot_transmission(redshift, lam_obs, show=False, fig=None, ax=None, figsize=(8, 6))[source]¶
Plot the IGM transmission.
- Parameters:
redshift (float) – Redshift to evaluate IGM absorption.
lam_obs (array) – Observed-frame wavelengths in Angstroms.
show (bool) – Whether to show the plot.
fig (matplotlib.figure.Figure) – Figure to plot on.
ax (matplotlib.axes.Axes) – Axes to plot on.
figsize (tuple) – Figure size.
- Returns:
Figure and Axes objects.
- Return type:
tuple
Examples using synthesizer.emission_models.attenuation.igm.IGMBase
¶
Generate parametric observed SED
- class synthesizer.emission_models.attenuation.igm.Inoue14(scale_tau=1.0)[source]¶
IGM absorption from Inoue et al. (2014).
Adapted from py-eazy.
- scale_tau¶
Parameter multiplied to the IGM \(\tau\) values (exponential in the linear absorption fraction). I.e., \(f_{\\mathrm{igm}} = e^{-\\mathrm{scale_\tau} \tau}\).
- Type:
float
- name¶
Name of the model.
- Type:
str
- lam¶
Wavelengths for the model.
- Type:
array
- alf1¶
Coefficients for the Lyman-alpha forest.
- Type:
array
- alf2¶
Coefficients for the Lyman-alpha forest.
- Type:
array
- alf3¶
Coefficients for the Lyman-alpha forest.
- Type:
array
- adla1¶
Coefficients for the Damped Lyman-alpha absorption.
- Type:
array
- adla2¶
Coefficients for the Damped Lyman-alpha absorption.
- Type:
array
- get_transmission(redshift, lam_obs)[source]¶
Compute the IGM transmission.
- Parameters:
redshift (float) – Redshift to evaluate IGM absorption.
lam_obs (array) – Observed-frame wavelengths in Angstroms.
- Returns:
IGM transmission.
- Return type:
array
- tau(redshift, lam_obs)[source]¶
Compute the total IGM optical depth.
- Parameters:
redshift (float) – Redshift to evaluate IGM absorption.
lam_obs (array) – Observed-frame wavelengths in Angstroms.
- Returns:
Total IGM absorption optical depth.
- Return type:
array
- tau_dla(redshift, lam_obs)[source]¶
Compute the Lyman series and Damped Lyman-alpha (DLA) optical depth.
- Parameters:
redshift (float) – Source redshift.
lam_obs (array) – Observed-frame wavelengths in Angstroms.
- Returns:
Optical depth due to DLA.
- Return type:
array
- tau_laf(redshift, lam_obs)[source]¶
Compute the Lyman series and Lyman-alpha forest optical depth.
- Parameters:
redshift (float) – Source redshift.
lam_obs (array) – Observed-frame wavelengths in Angstroms.
- Returns:
Optical depth due to the Lyman-alpha forest.
- Return type:
array
Examples using synthesizer.emission_models.attenuation.igm.Inoue14
¶
Examples using synthesizer.emission_models.attenuation.igm.Madau96
¶
Generate parametric observed SED