elisa.models.mul#
Multiplicative models.
- class Constant(f: 'Parameter' | float | None = None, latex: str | None = None)[source]#
Bases:
AnaIntMultiplicativeEnergy-independent multiplicative factor.
\[M(E) = f.\]- Parameters:
Attributes
evalGet side-effect free component evaluation function.
Constant parameter \(f\).
latex\(\LaTeX\) format of the component.
nameComponent name.
param_namesComponent's parameter names.
typeComponent type is multiplicative.
Methods
integral(egrid, params)Calculate the average value of the model between the grid.
- class Edge(Ec: 'Parameter' | float | None = None, D: 'Parameter' | float | None = None, latex: str | None = None, method=None)[source]#
Bases:
NumIntMultiplicativeAbsorption edge.
\[\begin{split}M(E) = \begin{cases} \exp\left[-D \bigl(\frac{E}{E_\mathrm{c}}\bigr)^3\right], &\text{if } E \ge E_\mathrm{c}, \\\\ 1, &\text{otherwise.} \end{cases}\end{split}\]- Parameters:
- Ec
Parameter, optional The threshold energy \(E_\mathrm{c}\), in units of keV.
- D
Parameter, optional The absorption depth \(D\) at the threshold energy, dimensionless.
- latex
str, optional \(\LaTeX\) format of the component. Defaults to class name.
- method{‘trapz’, ‘simpson’}, optional
Numerical integration method. Defaults to ‘trapz’.
- Ec
Attributes
Edge parameter \(D\).
Edge parameter \(E_\mathrm{c}\).
evalGet side-effect free component evaluation function.
latex\(\LaTeX\) format of the component.
methodNumerical integration method.
nameComponent name.
param_namesComponent's parameter names.
typeComponent type is multiplicative.
Methods
continuum(egrid, params)Calculate the model value at the energy grid.
- class ExpAbs(Ec: 'Parameter' | float | None = None, latex: str | None = None, method=None)[source]#
Bases:
NumIntMultiplicativeLow-energy exponential rolloff.
\[M(E) = \exp\left(-\frac{E_\mathrm{c}}{E}\right).\]- Parameters:
Attributes
ExpAbs parameter \(E_\mathrm{c}\).
evalGet side-effect free component evaluation function.
latex\(\LaTeX\) format of the component.
methodNumerical integration method.
nameComponent name.
param_namesComponent's parameter names.
typeComponent type is multiplicative.
Methods
continuum(egrid, params)Calculate the model value at the energy grid.
- class ExpFac(A: 'Parameter' | float | None = None, f: 'Parameter' | float | None = None, Ec: 'Parameter' | float | None = None, latex: str | None = None, method=None)[source]#
Bases:
NumIntMultiplicativeExponential modification.
\[\begin{split}M(E) = \begin{cases} 1 + A \exp\bigl(-\frac{f E}{E_0}\bigr), &\text{if } E \ge E_\mathrm{c}, \\\\ 1, &\text{otherwise,} \end{cases}\end{split}\]where \(E_0\) is the pivot energy fixed at 1 keV.
- Parameters:
- A
Parameter, optional The amplitude of effect \(A\), dimensionless.
- f
Parameter, optional The exponential factor \(f\), dimensionless.
- Ec
Parameter, optional The start energy of modification \(E_\mathrm{c}\), in units of keV.
- latex
str, optional \(\LaTeX\) format of the component. Defaults to class name.
- method{‘trapz’, ‘simpson’}, optional
Numerical integration method. Defaults to ‘trapz’.
- A
Attributes
ExpFac parameter \(A\).
ExpFac parameter \(E_\mathrm{c}\).
evalGet side-effect free component evaluation function.
ExpFac parameter \(f\).
latex\(\LaTeX\) format of the component.
methodNumerical integration method.
nameComponent name.
param_namesComponent's parameter names.
typeComponent type is multiplicative.
Methods
continuum(egrid, params)Calculate the model value at the energy grid.
- class GAbs(El: 'Parameter' | float | None = None, sigma: 'Parameter' | float | None = None, tau: 'Parameter' | float | None = None, latex: str | None = None, method=None)[source]#
Bases:
NumIntMultiplicativeGaussian absorption line.
\[M(E) = \exp\left[ -\frac{\tau}{\sqrt{2\pi} \sigma} \exp\left[ -\frac{\left(E - E_\mathrm{l}\right)^2}{2 \sigma^2} \right] \right].\]The optical depth at line center is \(\frac{\tau}{\sqrt{2\pi}\sigma}\).
- Parameters:
- El
Parameter, optional The line energy \(E_\mathrm{l}\), in units of keV.
- sigma
Parameter, optional The line width \(\sigma\), in units of keV.
- tau
Parameter, optional The line depth \(\tau\), in units of keV.
- latex
str, optional \(\LaTeX\) format of the component. Defaults to class name.
- method{‘trapz’, ‘simpson’}, optional
Numerical integration method. Defaults to ‘trapz’.
- El
Attributes
GAbs parameter \(E_\mathrm{l}\).
evalGet side-effect free component evaluation function.
latex\(\LaTeX\) format of the component.
methodNumerical integration method.
nameComponent name.
param_namesComponent's parameter names.
GAbs parameter \(\sigma\).
GAbs parameter \(\tau\).
typeComponent type is multiplicative.
Methods
continuum(egrid, params)Calculate the model value at the energy grid.
- class HighECut(Ec: 'Parameter' | float | None = None, Ef: 'Parameter' | float | None = None, latex: str | None = None, method=None)[source]#
Bases:
NumIntMultiplicativeHigh-energy cutoff.
\[\begin{split}M(E) = \begin{cases} \exp\bigl(\frac{E_\mathrm{c}-E}{E_\mathrm{f}}\bigr), &\text{if } E \ge E_\mathrm{c}, \\\\ 1, &\text{otherwise.} \end{cases}\end{split}\]- Parameters:
- Ec
Parameter, optional The cutoff energy \(E_\mathrm{c}\), in units of keV.
- Ef
Parameter, optional The e-folding energy \(E_\mathrm{f}\), in units of keV.
- latex
str, optional \(\LaTeX\) format of the component. Defaults to class name.
- method{‘trapz’, ‘simpson’}, optional
Numerical integration method. Defaults to ‘trapz’.
- Ec
Attributes
HighECut parameter \(E_\mathrm{c}\).
HighECut parameter \(E_\mathrm{f}\).
evalGet side-effect free component evaluation function.
latex\(\LaTeX\) format of the component.
methodNumerical integration method.
nameComponent name.
param_namesComponent's parameter names.
typeComponent type is multiplicative.
Methods
continuum(egrid, params)Calculate the model value at the energy grid.
- class PLAbs(alpha: 'Parameter' | float | None = None, K: 'Parameter' | float | None = None, latex: str | None = None)[source]#
Bases:
AnaIntMultiplicativeAbsorption as a power-law in energy. Useful for things like dust.
\[M(E) = K \left(\frac{E}{E_0}\right)^{-\alpha},\]where \(E_0\) is the pivot energy fixed at 1 keV.
- Parameters:
Attributes
PLAbs parameter \(K\).
PLAbs parameter \(\alpha\).
evalGet side-effect free component evaluation function.
latex\(\LaTeX\) format of the component.
nameComponent name.
param_namesComponent's parameter names.
typeComponent type is multiplicative.
Methods
integral(egrid, params)Calculate the average value of the model between the grid.
- class PhAbs(nH: 'Parameter' | float | None = None, latex: str | None = None, abund=None, xsect=None, method=None)[source]#
Bases:
PhotonAbsorptionPhotoelectric absorption.
\[M(E) = \exp \left[ -\eta_\mathrm{H}\ \sigma(E) \right],\]where \(\sigma(E)\) is the photo-electric cross-section, NOT including Thomson scattering.
- Parameters:
- nH
Parameter, optional The equivalent hydrogen column density \(\eta_\mathrm{H}\), in units of 10²² cm⁻².
- latex
str, optional \(\LaTeX\) format of the component. Defaults to class name.
- abund
str, optional Abundance table to use. Available options are:
The default is
'angr'.- xsect
str, optional Photon cross-section to use. Available options are:
The default is
'vern'.- method{‘trapz’, ‘simpson’}, optional
Numerical integration method. Defaults to ‘trapz’.
- nH
Attributes
abundCurrent abundance table.
evalGet photon absorption model function.
latex\(\LaTeX\) format of the component.
methodNumerical integration method.
PhAbs parameter \(\eta_\mathrm{H}\).
nameComponent name.
param_namesComponent's parameter names.
typeComponent type is multiplicative.
xsectCurrent photon cross-section.
Methods
Get available abundance list.
continuum(egrid, params, abs_model, abund, xsect)Photon absorption model.
Get available photon cross-section list.
References
- class TBAbs(nH: 'Parameter' | float | None = None, latex: str | None = None, abund=None, xsect=None, method=None)[source]#
Bases:
PhotonAbsorptionThe Tuebingen-Boulder ISM absorption model.
This model calculates the cross-sections for X-ray absorption by the ISM as the sum of the cross-sections for X-ray absorption due to the gas-phase ISM, the grain-phase ISM, and the molecules in the ISM.
- Parameters:
- nH
Parameter, optional The equivalent hydrogen column density \(\eta_\mathrm{H}\), in units of 10²² cm⁻².
- latex
str, optional \(\LaTeX\) format of the component. Defaults to class name.
- abund
str, optional Abundance table to use. Available options are:
The default is
'wilm'.- xsect
str, optional Always use cross-section
'vern'[9] as baseline.- method{‘trapz’, ‘simpson’}, optional
Numerical integration method. Defaults to ‘trapz’.
- nH
Attributes
abundCurrent abundance table.
evalGet photon absorption model function.
latex\(\LaTeX\) format of the component.
methodNumerical integration method.
TBAbs parameter \(\eta_\mathrm{H}\).
nameComponent name.
param_namesComponent's parameter names.
typeComponent type is multiplicative.
xsectCurrent photon cross-section.
Methods
Get available abundance list.
continuum(egrid, params, abs_model, abund, xsect)Photon absorption model.
Get available photon cross-section list.
References
- class WAbs(nH: 'Parameter' | float | None = None, latex: str | None = None, abund=None, xsect=None, method=None)[source]#
Bases:
PhotonAbsorptionA photo-electric absorption using Wisconsin cross-sections [1].
\[M(E) = \exp \left[ -\eta_\mathrm{H}\ \sigma(E) \right],\]where \(\sigma(E)\) is the photo-electric cross-section, NOT including Thomson scattering.
Warning
The
WAbsmodel is obsolete and is only included for comparison with historical results. TheTBAbsmodel should be used for the ISM orPhAbsfor general photoelectric absorption.- Parameters:
- nH
Parameter, optional The equivalent hydrogen column density \(\eta_\mathrm{H}\), in units of 10²² cm⁻².
- latex
str, optional \(\LaTeX\) format of the component. Defaults to class name.
- abund
str, optional Always use abundance table
'aneb'[2].- xsect
str, optional Always use Wisconsin cross-sections [1].
- method{‘trapz’, ‘simpson’}, optional
Numerical integration method. Defaults to ‘trapz’.
- nH
Attributes
abundCurrent abundance table.
evalGet photon absorption model function.
latex\(\LaTeX\) format of the component.
methodNumerical integration method.
WAbs parameter \(\eta_\mathrm{H}\).
nameComponent name.
param_namesComponent's parameter names.
typeComponent type is multiplicative.
xsectCurrent photon cross-section.
Methods
Get available abundance list.
continuum(egrid, params, abs_model, abund, xsect)Photon absorption model.
Get available photon cross-section list.
References