.. _sphx_glr_user-guide_model-gallery_spectral:

Spectral models
---------------

.. _spectral_models_gallery:



.. raw:: html

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model parametrises a cutoff power law spectrum used for 3FGL.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_exp_cutoff_powerlaw_3fgl_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_exp_cutoff_powerlaw_3fgl.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Exponential cutoff power law spectral model used for 3FGL</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model parametrises a smooth broken power law spectrum.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_smooth_broken_powerlaw_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_smooth_broken_powerlaw.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Smooth broken power law spectral model</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model parametrises a cutoff power law spectrum.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_exp_cutoff_powerlaw_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_exp_cutoff_powerlaw.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Exponential cutoff power law spectral model</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model parametrises a gaussian spectrum.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_gauss_spectral_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_gauss_spectral.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Gaussian spectral model</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This class provides an interface with the models defined in the naima models module.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_naima_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_naima.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Naima spectral model</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model parametrises a log parabola spectral correction with a norm parameter.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_logparabola_norm_spectral_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_logparabola_norm_spectral.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Log parabola spectral norm model</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model parametrises a power law spectral correction with a norm and tilt parameter.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_powerlaw_norm_spectral_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_powerlaw_norm_spectral.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Power law norm spectral model</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model evaluates absorbed spectral model.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_absorbed_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_absorbed.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">EBL absorption spectral model</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model takes a constant value along the spectral range.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_constant_spectral_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_constant_spectral.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Constant spectral model</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model parametrises a power law spectrum with integral as amplitude parameter.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_powerlaw2_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_powerlaw2.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Power law 2 spectral model</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model parametrises super exponential cutoff power-law model spectrum used for 4FGL.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_super_exp_cutoff_powerlaw_4fgl_dr1_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_super_exp_cutoff_powerlaw_4fgl_dr1.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Super Exponential Cutoff Power Law Model used for 4FGL-DR1 (and DR2)</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model is formed by the arithmetic combination of any two other spectral models.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_compound_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_compound.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Compound spectral model</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model parametrises a piecewise spectral correction with a free norm parameter at each fixed energy node.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_piecewise_norm_spectral_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_piecewise_norm_spectral.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Piecewise  norm spectral model</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model parametrises a log parabola spectrum.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_logparabola_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_logparabola.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Log parabola spectral model</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model parametrises a cutoff power law spectral correction with a norm parameter.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_exp_cutoff_powerlaw_norm_spectral_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_exp_cutoff_powerlaw_norm_spectral.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Exponential cutoff power law norm spectral model</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model parametrises a broken power law spectrum.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_broken_powerlaw_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_broken_powerlaw.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Broken power law spectral model</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model is defined by custom tabular values.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_template_spectral_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_template_spectral.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Template spectral model</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model parametrises super exponential cutoff power-law model spectrum used for 3FGL.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_super_exp_cutoff_powerlaw_3fgl_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_super_exp_cutoff_powerlaw_3fgl.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Super exponential cutoff power law model used for 3FGL</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model parametrises super exponential cutoff power-law model spectrum used for 4FGL.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_super_exp_cutoff_powerlaw_4fgl_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_super_exp_cutoff_powerlaw_4fgl.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Super Exponential Cutoff Power Law Model used for 4FGL-DR3</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This model parametrises a power law spectrum.">

.. only:: html

  .. image:: /user-guide/model-gallery/spectral/images/thumb/sphx_glr_plot_powerlaw_thumb.png
    :alt:

  :ref:`sphx_glr_user-guide_model-gallery_spectral_plot_powerlaw.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Power law spectral model</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /user-guide/model-gallery/spectral/plot_exp_cutoff_powerlaw_3fgl
   /user-guide/model-gallery/spectral/plot_smooth_broken_powerlaw
   /user-guide/model-gallery/spectral/plot_exp_cutoff_powerlaw
   /user-guide/model-gallery/spectral/plot_gauss_spectral
   /user-guide/model-gallery/spectral/plot_naima
   /user-guide/model-gallery/spectral/plot_logparabola_norm_spectral
   /user-guide/model-gallery/spectral/plot_powerlaw_norm_spectral
   /user-guide/model-gallery/spectral/plot_absorbed
   /user-guide/model-gallery/spectral/plot_constant_spectral
   /user-guide/model-gallery/spectral/plot_powerlaw2
   /user-guide/model-gallery/spectral/plot_super_exp_cutoff_powerlaw_4fgl_dr1
   /user-guide/model-gallery/spectral/plot_compound
   /user-guide/model-gallery/spectral/plot_piecewise_norm_spectral
   /user-guide/model-gallery/spectral/plot_logparabola
   /user-guide/model-gallery/spectral/plot_exp_cutoff_powerlaw_norm_spectral
   /user-guide/model-gallery/spectral/plot_broken_powerlaw
   /user-guide/model-gallery/spectral/plot_template_spectral
   /user-guide/model-gallery/spectral/plot_super_exp_cutoff_powerlaw_3fgl
   /user-guide/model-gallery/spectral/plot_super_exp_cutoff_powerlaw_4fgl
   /user-guide/model-gallery/spectral/plot_powerlaw