Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

# ChiantiPy [![Build Status](https://travis-ci.org/chianti-atomic/ChiantiPy.svg?branch=master)](https://travis-ci.org/chianti-atomic/ChiantiPy) [![Documentation Status](http://readthedocs.org/projects/chiantipy/badge/?version=latest)](http://chiantipy.readthedocs.io/en/latest/?badge=latest) [![Coverage Status](https://coveralls.io/repos/github/chianti-atomic/ChiantiPy/badge.svg?branch=master)](https://coveralls.io/github/chianti-atomic/ChiantiPy?branch=master) [![ascl:1308.017](https://img.shields.io/badge/ascl-1308.017-blue.svg?colorB=262255)](http://ascl.net/1308.017)

ChiantiPy is the Python interface to the [CHIANTI atomic database](http://www.chiantidatabase.org) 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](http://ipython.org) * [Jupyter](http://jupyter.org/)

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](https://www.continuum.io/downloads). Next, download the [CHIANTI database](http://www.chiantidatabase.org/chianti_download.html). Assuming you’ve placed the CHIANTI tree in $HOME, set the environment variable in your .bashrc file, `Shell export XUVTOP=$HOME/chianti/dbase `

Finally, clone and install the source from GitHub, `Shell $ 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: `Python >>> 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.7.1a0

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.7.1a0
File Size Uploaded Provenance Actions
ChiantiPy-0.7.1a0.tar.gz 6.6 MB Without provenance Details for ChiantiPy-0.7.1a0.tar.gz

Release files / ChiantiPy-0.7.1a0.tar.gz

Download URL ChiantiPy-0.7.1a0.tar.gz
Size 6.6 MB
Tags Source
SHA-256 checksum
How to use checksums
d9efc0b57883876ae715165daee0a4732a5f144892b6aac53d2fab7bdf6126e9
BLAKE2b-256 checksum
How to use checksums
72bb524c08bcbb7bdaa3c931367c654d0f7f519c894803a83e48e8ee72ebf077
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ChiantiPy 0.7.1a0

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