A Python interface to the CHIANTI atomic database
Project description
fiasco
A Python interface to the CHIANTI atomic database. For a high level overview of the package, have a look at my talk (slides, video) from the 2018 Python in Astronomy conference.
Install
$ pip install fiasco
The CHIANTI atomic database is also required. See the docs for more details.
Example
>>> import astropy.units as u
>>> import fiasco
>>> iron = fiasco.Element('iron', [1e4, 1e6, 1e8]*u.K)
# Print some information about the element
>>> iron.atomic_number
26
>>> iron.atomic_symbol
'Fe'
>>> iron.abundance
<Quantity 3.16227766e-05>
# Select the Fe 16 ion
>>> iron[15].ion_name
'Fe 16'
>>> iron[15].charge_state
15
# Ionization fraction
>>> iron[15].ioneq
<Quantity [0.000e+00, 2.377e-08, 4.163e-18]>
Why fiasco?
A fiasco, or flask, is the typical style of bottle used to serve the Chianti Classico wine. It is typically larger and rounder at the bottom and is covered by a straw basket. In the same way, the fiasco
package serves up the CHIANTI atomic database.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fiasco-0.1.0.tar.gz
(161.1 kB
view hashes)
Built Distribution
fiasco-0.1.0-py3-none-any.whl
(91.6 kB
view hashes)