Cthulhu.hdf5_package

Functions to repackage calculated cross section grids as HDF5 files

Functions

read_cross_section_grid(species, database, log_P, T, ...)

Read pre-computed cross section .txt files into a single large numpy array.

make_single_species_HDF5(species, database, linelist, ...)

Save cross section grid for a single chemical species as a HDF5 file.

extend_HDF5_database(database_name, species)

Add a chemical species from an individual HDF5 file to the combined database.

Module Contents

Cthulhu.hdf5_package.read_cross_section_grid(species, database, log_P, T, ionization_state, isotope, linelist, broadening, output_dir='./output/')

Read pre-computed cross section .txt files into a single large numpy array.

Cthulhu.hdf5_package.make_single_species_HDF5(species, database, linelist, log_P, T, isotope='default', broadening='H2-He', output_dir='./output/HDF5/', version=1)

Save cross section grid for a single chemical species as a HDF5 file.

Cthulhu.hdf5_package.extend_HDF5_database(database_name, species)

Add a chemical species from an individual HDF5 file to the combined database.