Commit debcf429b6dc8e769ca49b0c7d33dd7ff6bdcd4b

Authored by Jürgen Knödlseder
1 parent ad72820d

Add units to models.

doc/source/user_manual/getting_started/models.rst
@@ -357,6 +357,7 @@ Constant @@ -357,6 +357,7 @@ Constant
357 where 357 where
358 358
359 * :math:`N_0` = ``Normalization`` 359 * :math:`N_0` = ``Normalization``
  360 + :math:`[{\rm ph}\,\,{\rm cm}^{-2}\,{\rm s}^{-1}\,{\rm MeV}^{-1}]`
360 361
361 362
362 363
@@ -379,8 +380,10 @@ Power law @@ -379,8 +380,10 @@ Power law
379 where 380 where
380 381
381 * :math:`k_0` = ``Prefactor`` 382 * :math:`k_0` = ``Prefactor``
  383 + :math:`[{\rm ph}\,\,{\rm cm}^{-2}\,{\rm s}^{-1}\,{\rm MeV}^{-1}]`
382 * :math:`\gamma` = ``Index`` 384 * :math:`\gamma` = ``Index``
383 * :math:`E_0` = ``Scale`` 385 * :math:`E_0` = ``Scale``
  386 + :math:`[{\rm MeV}]`
384 387
385 .. warning:: 388 .. warning::
386 389
@@ -407,9 +410,12 @@ Power law @@ -407,9 +410,12 @@ Power law
407 where 410 where
408 411
409 * :math:`N` = ``Integral`` 412 * :math:`N` = ``Integral``
  413 + :math:`[{\rm ph}\,\,{\rm cm}^{-2}\,{\rm s}^{-1}]`
410 * :math:`\gamma` = ``Index`` 414 * :math:`\gamma` = ``Index``
411 * :math:`E_{\rm min}` = ``LowerLimit`` 415 * :math:`E_{\rm min}` = ``LowerLimit``
  416 + :math:`[{\rm MeV}]`
412 * :math:`E_{\rm max}` = ``UpperLimit`` 417 * :math:`E_{\rm max}` = ``UpperLimit``
  418 + :math:`[{\rm MeV}]`
413 419
414 .. warning:: 420 .. warning::
415 421
@@ -441,9 +447,12 @@ Exponentially cut-off power law @@ -441,9 +447,12 @@ Exponentially cut-off power law
441 where 447 where
442 448
443 * :math:`k_0` = ``Prefactor`` 449 * :math:`k_0` = ``Prefactor``
  450 + :math:`[{\rm ph}\,\,{\rm cm}^{-2}\,{\rm s}^{-1}\,{\rm MeV}^{-1}]`
444 * :math:`\gamma` = ``Index`` 451 * :math:`\gamma` = ``Index``
445 * :math:`E_0` = ``Scale`` 452 * :math:`E_0` = ``Scale``
  453 + :math:`[{\rm MeV}]`
446 * :math:`E_{\rm cut}` = ``Cutoff`` 454 * :math:`E_{\rm cut}` = ``Cutoff``
  455 + :math:`[{\rm MeV}]`
447 456
448 .. warning:: 457 .. warning::
449 458
@@ -477,9 +486,11 @@ Broken power law @@ -477,9 +486,11 @@ Broken power law
477 where 486 where
478 487
479 * :math:`k_0` = ``Prefactor`` 488 * :math:`k_0` = ``Prefactor``
  489 + :math:`[{\rm ph}\,\,{\rm cm}^{-2}\,{\rm s}^{-1}\,{\rm MeV}^{-1}]`
480 * :math:`\gamma_1` = ``Index1`` 490 * :math:`\gamma_1` = ``Index1``
481 * :math:`\gamma_2` = ``Index2`` 491 * :math:`\gamma_2` = ``Index2``
482 * :math:`E_b` = ``BreakValue`` 492 * :math:`E_b` = ``BreakValue``
  493 + :math:`[{\rm MeV}]`
483 494
484 .. warning:: 495 .. warning::
485 496
@@ -508,10 +519,11 @@ Log parabola @@ -508,10 +519,11 @@ Log parabola
508 where 519 where
509 520
510 * :math:`k_0` = ``Prefactor`` 521 * :math:`k_0` = ``Prefactor``
  522 + :math:`[{\rm ph}\,\,{\rm cm}^{-2}\,{\rm s}^{-1}\,{\rm MeV}^{-1}]`
511 * :math:`\gamma` = ``Index`` 523 * :math:`\gamma` = ``Index``
512 * :math:`\eta` = ``Curvature`` 524 * :math:`\eta` = ``Curvature``
513 * :math:`E_0` = ``Scale`` 525 * :math:`E_0` = ``Scale``
514 - 526 + :math:`[{\rm MeV}]`
515 527
516 .. warning:: 528 .. warning::
517 529
@@ -554,8 +566,11 @@ Gaussian @@ -554,8 +566,11 @@ Gaussian
554 where 566 where
555 567
556 * :math:`N_0` = ``Normalization`` 568 * :math:`N_0` = ``Normalization``
  569 + :math:`[{\rm ph}\,\,{\rm cm}^{-2}\,{\rm s}^{-1}]`
557 * :math:`\bar{E}` = ``Mean`` 570 * :math:`\bar{E}` = ``Mean``
  571 + :math:`[{\rm MeV}]`
558 * :math:`\sigma` = ``Sigma`` 572 * :math:`\sigma` = ``Sigma``
  573 + :math:`[{\rm MeV}]`
559 574
560 575
561 File function 576 File function
@@ -571,11 +586,12 @@ File function @@ -571,11 +586,12 @@ File function
571 that is defined by intensity values at specific energies. 586 that is defined by intensity values at specific energies.
572 The energy and intensity values are defined using an ASCII file with 587 The energy and intensity values are defined using an ASCII file with
573 columns of energy and differential flux values. 588 columns of energy and differential flux values.
574 - The energy units are assumed to be MeV and the flux values are assumed to  
575 - :math:`{\rm cm}^{-2} {\rm s}^{-1} {\rm MeV}^{-1}` 589 + The energy units are assumed to be :math:`[{\rm MeV}]` and the flux values
  590 + are assumed to
  591 + :math:`{\rm ph}\,\,{\rm cm}^{-2} {\rm s}^{-1} {\rm MeV}^{-1}`
576 (the only exception being a model for which the spatial component is 592 (the only exception being a model for which the spatial component is
577 a constant diffuse model; in this case, the units are 593 a constant diffuse model; in this case, the units are
578 - :math:`{\rm cm}^{-2} {\rm s}^{-1} {\rm MeV}^{-1} {\rm sr}^{-1}`). 594 + :math:`{\rm ph}\,\,{\rm cm}^{-2} {\rm s}^{-1} {\rm MeV}^{-1} {\rm sr}^{-1}`).
579 The only parameter is a multiplicative normalization: 595 The only parameter is a multiplicative normalization:
580 596
581 .. math:: 597 .. math::
@@ -612,6 +628,14 @@ Node function @@ -612,6 +628,14 @@ Node function
612 The ``NodeFunction`` model component implements a generalised broken 628 The ``NodeFunction`` model component implements a generalised broken
613 power law which is defined by a set of energy and intensity values 629 power law which is defined by a set of energy and intensity values
614 (the so called nodes) that are piecewise connected by power laws. 630 (the so called nodes) that are piecewise connected by power laws.
  631 + Energies are given in units of
  632 + :math:`[{\rm MeV}]`,
  633 + intensities are given in units of
  634 + :math:`[{\rm ph}\,\,{\rm cm}^{-2}\,{\rm s}^{-1}\,{\rm MeV}^{-1}]`
  635 + (except for a constant diffuse model where intensities are given in
  636 + units of
  637 + :math:`[{\rm ph}\,\,{\rm cm}^{-2}\,{\rm s}^{-1}\,{\rm MeV}^{-1}\,{\rm
  638 + sr}^{-1}]`).
615 639
616 .. warning:: 640 .. warning::
617 641