Skip to main content

Nebular tools

Project description

PyNeb (Luridiana V., Morisset C. and Shaw, R. A 2013) is a modern python tool to compute emission line emissivities (recombination and collisionally excited lines).

In PyNeb, the atom is represented as an n-level atom. For given density and temperature, PyNeb’s machinery solves the equilibrium equations and determines the level populations. These are some of the things it can do:

  • compute physical conditions from suitable diagnostic line ratios.
  • compute level populations, critical densities and line emissivities
  • compute and display emissivity grids as a function of Te and Ne
  • deredden line intensities
  • read and manage observational data
  • plot and compare atomic data from different publications
  • compute ionic abundances from line intensities and physical conditions
  • compute elemental abundances from ionic abundances and icfs.

PyNeb also incorporates emissivity tables of recombination lines for a few atoms. The interpolated emissivities can be used by any of the module that rely on the n-level line emissivities to carry out the actions listed above.

Emission line ratios are used to self consistently determine electron temperature and density and ionic abundances Diagnostic diagrams can easily be plotted. Various ionization correction factors (ICFs) from the literarure are available to obtain total elemental abundances from the ionic abundances. Atomic data can easily be changed and updated. Additional tools are provided, like reddening determination and correction procedures.


PyNeb uses numpy, matplotlib, pyfits, scipy and other standard python libraries.


You may find useful to download, install and upgrade PyNeb using pip.

For example:

  • pip install -U PyNeb

Note: you MAY need –user if you installed python without Anaconda or Canopy

Updates use the same command.

To use the development package (at your own risks!!!):

  • pip install -U git+


PyNeb is provided as it is. No warranty at all.


Discussion Groups


This project is partly supported by grants DGAPA/PAPIIT-107215 and CONACyT-CB2015-254132.

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
PyNeb-1.1.8.tar.gz (23.8 MB) Copy SHA256 hash SHA256 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