Skip to main content

a Python interface to the CHIANTI atomic database for astrophysical spectroscopy

Project description

ChiantiPy is the Python interface to the CHIANTI atomic database for astrophysical spectroscopy. It provides the capability to calculate the emission line and continuum spectrum of an optically thin plasma based on the data in the CHIANTI database.

What is CHIANTI?

CHIANTI provides a database of atomic data that can be used to interpret the emission of spectral lines and continuua emitted from high-temperature, optically-thin astrophysical sources.

Installation

The following dependencies are required to run ChiantiPy,

The following two are extremely useful for running Python programs

Optionally, if you’d like to use the GUI interfaces,

  • PyQt5 <https://riverbankcomputing.com/software/pyqt/intro>

If you are not familiar with installing Python and the needed dependencies, we recommend the Anaconda platform. Next, download the CHIANTI database. Assuming you’ve placed the CHIANTI tree in $HOME, set the environment variable in your .bashrc file,

export XUVTOP=$HOME/chianti/dbase

Finally, clone and install the source from GitHub,

$ git clone --recursive https://github.com/chianti-atomic/ChiantiPy.git
$ cd ChiantiPy
$ python setup.py install

Usage

As a quick example, we’ll calculate the populations of the top 10 levels of Fe XIV as a function of temperature at constant density and plot them:

>>> import ChiantiPy.core as ch
>>> import numpy as np
>>> import matplotlib.pyplot as plt
>>> temperature = np.logspace(5.8,6.8,21)
>>> fe14 = ch.ion('fe_14',temperature=temperature,eDensity=1.e+9,em=1.e+27)
>>> fe14.popPlot()
>>> plt.show()

Help

For more information about installing and using either ChiantiPy or the CHIANTI atomic database, check out the following links:

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ChiantiPy-0.8.2-py3-none-any.whl (141.3 kB view details)

Uploaded Python 3

File details

Details for the file ChiantiPy-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: ChiantiPy-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 141.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for ChiantiPy-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b29d749ffb9faeef5e06fd966420ecf464577022cdc6999ec272800507c87532
MD5 40ef6e69a02fe35625092004c1cad4e2
BLAKE2b-256 51b61832c40459aca322f0d220c6cc0f271d10826483277e359d7a9b23471eea

See more details on using hashes here.

Supported by

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