Skip to main content

a Python interface to the CHIANTI atomic database for astrophysical spectroscopy

Project description

Documentation Status Coverage Status ascl:1308.017

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 continua emitted from high-temperature, optically-thin astrophysical sources. The CHIANTI project provides a suite of routines written in Interactive Data Language (IDL) to access the database and calculate various quantities for use in interpreting observed spectra or producing synthetic spectra.

Installation

The following dependencies are required to run ChiantiPy,

The following two are extremely useful for running Python programs * IPython * Jupyter

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

If you are not familiar with installing Python and the needed dependencies, we recommend the Anaconda platform. Next, download the CHIANTI database, version 9.0 or later. 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

The release is also available on PyPI

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 Distribution

ChiantiPy-0.9.2.tar.gz (9.5 MB view details)

Uploaded Source

Built Distribution

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

ChiantiPy-0.9.2-py3-none-any.whl (150.3 kB view details)

Uploaded Python 3

File details

Details for the file ChiantiPy-0.9.2.tar.gz.

File metadata

  • Download URL: ChiantiPy-0.9.2.tar.gz
  • Upload date:
  • Size: 9.5 MB
  • Tags: Source
  • 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.10

File hashes

Hashes for ChiantiPy-0.9.2.tar.gz
Algorithm Hash digest
SHA256 98bc09aab4853ea470ffd9584684b4a424236d141a0b130f72c5945df0d4fd06
MD5 adbcc37eaa96ed9464a5a4c5f7767f10
BLAKE2b-256 32ca9e895d9e8f24c231f4cfba2493e92cf409fa8dce61f3600483a4a680cc1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ChiantiPy-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 150.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.7

File hashes

Hashes for ChiantiPy-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 202c6bd8c4f4581c21d5a60b2de315119daf9613955996b1f8889afbb3b84d7c
MD5 e9b5e7ecceb6e946f2acde690359e567
BLAKE2b-256 598e44ea8864c7d3bd9b7ca7ec20d92cb549d3dba033e871b414071032e2b257

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