Skip to main content

Derivation of non-thermal particle distributions through MCMC spectral fitting

Project description

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, an affine-invariant ensemble sampler for Markov Chain Monte Carlo.

naima is named after a ballad composed by John Coltrane in 1959 which appeared in the albums Giant Steps (1959) and Live at the Village Vanguard (1961).


Documentation is at


If you find naima useful in your research, you can cite Zabalza (2015) to acknowledge its use. The BibTeX entry for the paper is:

   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 = {},


Naima is released under a 3-clause BSD style license - see the LICENSE.rst file.

Code status

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

naima-0.10.0.tar.gz (5.2 MB view hashes)

Uploaded source

Built Distribution

naima-0.10.0-py3-none-any.whl (4.6 MB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page