Skip to content

Instantly share code, notes, and snippets.

@mishinma
Created January 25, 2017 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mishinma/286f1ceec0f1c758b1f1e2fafae4f2ee to your computer and use it in GitHub Desktop.
Save mishinma/286f1ceec0f1c758b1f1e2fafae4f2ee to your computer and use it in GitHub Desktop.
from carsus import init_db
from carsus.io.output import AtomData
dbname = "path/to/nonempty.db"
session = init_db(dbname)
ad = AtomData(session, selected_atoms='H-Zn', chianti_ions="H; He")
storename = "path/to/hdfstore.h5"
ad.to_hdf(storename, store_atom_masses=True, store_ionization_energies=True,
store_levels=True, store_lines=True, store_macro_atom=True, store_collisions=False,
store_zeta_data=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment