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.

Files for naima, version 0.8.3
Filename, size & hash File type Python version Upload date
naima-0.8.3.tar.gz (5.5 MB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page