fiasco util

Contents

fiasco util#

Various package utilities

Functions#

build_hdf5_dbase(ascii_dbase_root, ...[, files])

Assemble HDF5 file from raw ASCII CHIANTI database.

burgess_tully_descale(x, y, energy_ratio, c, ...)

Convert scaled Burgess-Tully [BT92] parameters to physical quantities.

check_database(hdf5_dbase_root, **kwargs)

Check if the HDF5 database exists, download the ASCII files and build the HDF5 database.

download_dbase(ascii_dbase_url, ascii_dbase_root)

Download the CHIANTI database in ASCII format

get_chianti_catalog(ascii_dbase_root)

Return a dictionary of all CHIANTI data files, separated by category.

needs_dataset(*names)

Decorator for raising an error when the needed atomic data is not available.

parse_ion_name(ion_name)

Parse the atomic number and ionization stage from representation of ion.

setup_paths()

Parse .rc file and set ASCII and HDF5 database paths.

vectorize_where(x_1, x_2)

Find indices of one array in another

vectorize_where_sum(x_1, x_2, y[, axis])

Find all occurrences of one array in another and sum over a third