build_hdf5_dbase#
- fiasco.util.build_hdf5_dbase(ascii_dbase_root, hdf5_dbase_root, files=None, check_hash=False, overwrite=False, show_progress=True)[source]#
Assemble HDF5 file from raw ASCII CHIANTI database.
- Parameters:
ascii_dbase_root (
strorPath) – Path to top of CHIANTI database treefiles (
listordict, optional) – A list of files to update in the HDF5 database. By default, this is all of the files inascii_dbase_root.check_hash (
bool, optional) – If True, check the file hash before adding it to the database. Building the database will fail if any of the hashes is not as expected.overwrite (
bool, optional) – If True, overwrite existing database file. By default, this is false such that an exception will be thrown if the database already exists.show_progress (
bool, optional) – Do not show progress bar. This is useful when using this function in a thread other than the main interpreter thread.