tardis-sn/carsus

Output format for photoionization data

chvogl opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
TARDIS needs photoionization data to perform NLTE calculations. This data will come mainly from the CMFGEN atomic database. This issue describes the desired output format for this data.

Describe the solution you'd like
The goal is to export a table with frequency (in units Hz) and cross section values (in units cm^2) for each level. The frequencies start at the threshold for ionization and should follow a logarithmic grid. The image below shows an example of the desired ouput DataFrame:
Screenshot 2021-06-21 at 17 40 28
The DataFrame has a MultiIndex with the atomic_number, ion_number, level_number of the level from which photoionization occurs. The destination levels is not specified since we assume all photoionizations go to the ground state of the next higher ionization state.

Describe alternatives you've considered
None. The format is perfect as is ;-)

This is now implemented in the code (#200).