Commit 3572281a16b498c3ffd8cc09c0a1ddbd2fb7310d
1 parent
4706ee00
documentation for Exponential/EBL absorption spectral model
Showing
1 changed file
with
39 additions
and
0 deletions
doc/source/users/user_manual/models_spectral.rst
| ... | ... | @@ -501,3 +501,42 @@ Multiplicative model |
| 501 | 501 | where :math:`M_{\rm spectral}^{(i)}(E)` is any spectral model component |
| 502 | 502 | (including another composite model), and :math:`N` is the number of |
| 503 | 503 | model components that are multiplied. |
| 504 | + | |
| 505 | + | |
| 506 | +Exponential model: EBL absorption | |
| 507 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| 508 | + | |
| 509 | + This spectral model component implements the exponential of an | |
| 510 | + arbitrary spectral model. It can be used to model a spectrum with | |
| 511 | + EBL absorption based on a tabulated model of opacity as a function | |
| 512 | + of photon energy. | |
| 513 | + | |
| 514 | + .. code-block:: xml | |
| 515 | + | |
| 516 | + <spectrum type="Multiplicative"> | |
| 517 | + <spectrum type="PowerLaw"> | |
| 518 | + <parameter name="Prefactor" scale="1e-16" value="5.7" min="1e-07" max="1000.0" free="1"/> | |
| 519 | + <parameter name="Index" scale="-1" value="2.48" min="0.0" max="+5.0" free="1"/> | |
| 520 | + <parameter name="PivotEnergy" scale="1e6" value="0.3" min="0.01" max="1000.0" free="0"/> | |
| 521 | + </spectrum> | |
| 522 | + <spectrum type="Exponential"> | |
| 523 | + <spectrum type="FileFunction" file="opacity.txt"> | |
| 524 | + <parameter scale="-1.0" name="Normalization" min="0." max="100.0" value="1.0" free="1"/> | |
| 525 | + </spectrum> | |
| 526 | + </spectrum> | |
| 527 | + </spectrum> | |
| 528 | + | |
| 529 | + This example corresponds to a spectrum | |
| 530 | + | |
| 531 | + .. math:: | |
| 532 | + M_{\rm spectral}(E) = k_0 \left( \frac{E}{E_0} \right)^{\gamma} | |
| 533 | + \times \exp\left( -\alpha \tau\left( E \right) \right) | |
| 534 | + | |
| 535 | + where | |
| 536 | + | |
| 537 | + * the first block/factor corresponds to a power law; | |
| 538 | + * the second block/factor models EBL absorption, and it points to an | |
| 539 | + ASCII file with two columns containing energy in :math:`{\rm MeV}` | |
| 540 | + as first column and opacity :math:`\tau` as second column, respectively; | |
| 541 | + * the parameter :math:`\alpha` = ``Normalization`` represents an | |
| 542 | + opacity scaling factor. | ... | ... |