ChiantiPy - Version 0.16.1
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. As of ChiantiPy 0.10.0, the CHIANTI database version 10 or later is required
Installation
ChiantiPy is available on PyPI
$ python3 -m pip install ChiantiPy
Or, clone and install the source from GitHub,
$ git clone --recursive https://github.com/chianti-atomic/ChiantiPy.git
$ cd ChiantiPy
$ python setup.py install
Another method is to use the Anaconda platform. Next, download the CHIANTI database, version 10.0 or later. Assuming you've placed the CHIANTI tree in $HOME, set the environment variable in your .bashrc file,
setenv XUVTOP $HOME/MY_CHIANTI_DIRECTORY
or
export XUVTOP=$HOME/MY_CHIANTI_DIRECTORY
should point to the top directory of your CHIANTI distribution
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:
Metadata
Release files for ChiantiPy 0.16.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chiantipy-0.16.1.tar.gz | 13.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chiantipy-0.16.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 MB
Release files / chiantipy-0.16.1.tar.gz
| Download URL | chiantipy-0.16.1.tar.gz |
|---|---|
| Size | 13.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39e4646948a9ee042541ed0389bc66a5826dacfcb953b249b122848468994123
|
|
BLAKE2b-256 checksum How to use checksums |
98f24dd5d28427cf6799e0db73948b734ff8e6f4fde85ed8b96e2ff119b9161b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.15
|
Release files / chiantipy-0.16.1-py3-none-any.whl
| Download URL | chiantipy-0.16.1-py3-none-any.whl |
|---|---|
| Size | 357.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e2b04a1bfb3ec607677c36fd0e653988376b523cdfbc220262f81a49ec23782
|
|
BLAKE2b-256 checksum How to use checksums |
9255e00255c8154f2bd2c8b74c84e9003e48f985114605ea7a70f02490dd5136
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.15
|