Skip to main content

ChiantiPy - Version 0.16.0

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. 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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ChiantiPy 0.16.0
File Size Uploaded Provenance Actions
chiantipy-0.16.0.tar.gz 13.4 MB Without provenance Details for chiantipy-0.16.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ChiantiPy 0.16.0
File Interpreter ABI Platform Actions
chiantipy-0.16.0-py3-none-any.whl Python 3 none any Details for chiantipy-0.16.0-py3-none-any.whl

Total release size: 13.7 MB

Release files / chiantipy-0.16.0.tar.gz

Download URL chiantipy-0.16.0.tar.gz
Size 13.4 MB
Tags Source
SHA-256 checksum
How to use checksums
93258636225fa6ef8745a94eb9d5d394b264c8c83d1c6efa74fce2fad1ef3da4
BLAKE2b-256 checksum
How to use checksums
90a3d22ce6488a5089e8abcc5ad40fe2526e892d2dc19fe1e5beab6f4a01a336
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / chiantipy-0.16.0-py3-none-any.whl

Download URL chiantipy-0.16.0-py3-none-any.whl
Size 358.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f92d59bafaa68778b7122a72b759ee6157b164aa3a7eab395d279ba943154593
BLAKE2b-256 checksum
How to use checksums
8ba60e0161fba3d032dcf36606fa25aee7ca455f26addb177e5762a32e0bbc2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for ChiantiPy 0.16.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page