zblz / naima

Derivation of non-thermal particle distributions through MCMC spectral fitting
http://naima.readthedocs.io
BSD 3-Clause "New" or "Revised" License
45 stars 53 forks source link
astronomy astrophysics data-analysis gamma-ray-astronomy python

naima

naima is a Python package for computation of non-thermal radiation from relativistic particle populations. It includes tools to perform MCMC fitting of radiative models to X-ray, GeV, and TeV spectra using emcee <http://dan.iel.fm/emcee>_, an affine-invariant ensemble sampler for Markov Chain Monte Carlo.

naima is named after a ballad composed by John Coltrane in 1959 <https://en.wikipedia.org/wiki/Naima> which appeared in the albums Giant Steps (1959) <https://www.youtube.com/watch?v=QTMqes6HDqU> and Live at the Village Vanguard (1961) <https://www.youtube.com/watch?v=Tq3-99vbFt8>_.

.. image:: http://img.shields.io/pypi/v/naima.svg :target: https://pypi.python.org/pypi/naima/ .. image:: http://img.shields.io/badge/license-BSD-green.svg :target: https://github.com/zblz/naima/blob/master/LICENSE.rst .. image:: http://img.shields.io/badge/powered%20by-AstroPy-orange.svg :target: http://www.astropy.org .. image:: http://img.shields.io/badge/arXiv-1509.03319-blue.svg :target: http://arxiv.org/abs/1509.03319

Documentation ^^^^^^^^^^^^^

Documentation is at naima.readthedocs.io <http://naima.readthedocs.io>_.

Attribution ^^^^^^^^^^^

If you find naima useful in your research, you can cite Zabalza (2015) <http://arxiv.org/abs/1509.03319>_ to acknowledge its use. The BibTeX entry for the paper is:

.. code-block:: bibtex

@ARTICLE{naima,
   author = {{Zabalza}, V.},
    title = {naima: a Python package for inference of relativistic particle
             energy distributions from observed nonthermal spectra},
     year = 2015,
  journal = {Proc.~of International Cosmic Ray Conference 2015},
    pages = "922",
   eprint = {1509.03319},
   adsurl = {http://adsabs.harvard.edu/abs/2015arXiv150903319Z},
}

License ^^^^^^^

Naima is released under a 3-clause BSD style license - see the LICENSE.rst <https://github.com/zblz/naima/blob/master/LICENSE.rst>_ file.

Code status ^^^^^^^^^^^

.. image:: https://img.shields.io/github/actions/workflow/status/zblz/naima/tests.yaml?branch=main :target: https://github.com/zblz/naima/actions/workflows/tests.yaml .. image:: https://img.shields.io/badge/benchmarked%20by-asv-green.svg :target: http://zblz.github.io/naima-benchmarks