CheckAtomic

Summarize an atomic data file in order to see how large arrays defined in atomic.h must be

Command line usage (if any):

usage:

CheckAtomic.py masterfile

Description:

The routine reads a master file and and then all of the data that would be read into Sirocco using this master file. It then parses the concatenated list of data and attempts to summarize how many inputs are read in.

Primary routines:

doit

Notes

At present it does not work out the number of photioniztion x-sections or the number of collisional x-sections

The routine must b run from a directory in which the variious files in the master file are properly linked.

History:

240511 ksl Coding begun

Functions

analyze_lines(line_tab)

Analyze the lines

doit([master])

Anaylyse a set of atomicdata for use with Sirocco, given a masterifle listing all of the files that consitute the inputs

get_element_table(lines)

Get the elements from the concatenated input file

get_ion_tab(lines, elements)

Get the ions from the concatenated nput file, given the elements that have been already determined.

get_level_tab(lines, ions)

Get the leverls from the concatenated inputs given the ions that are active

get_line_tab(lines, lev)

Get the lines from the concatenated inputs given a table contaiing the levels

xread([filename, split])