RedoPhot

Extend phot tables retrieved from Topbase to higher energies and produce a plot file which shows the extended x-section file

Command line usage (if any):

usage: RedoPhot.py [-h] [-outroot whatever] filename

Description:

where:

-h prints the the help information and then the routine quits

-outroot whatever is the root name for the output files If this optional parameter is not given the ouputs will be written to test_phot, and the figure will have the name test_phot.png

filename is the name of a macro atom phot file

Primary routines:

redo_one

Notes

The input file must be a standard photfile usable by Python.

At present this is only set up for handling phot files for MacroAtoms but it would be easy to modify it to work with photfiles intended to work with simple ions

History:

231102 ksl Coding begun

Functions

extrap([photfile, emax])

This routine adds points to the various x-sections so that the maxium energy is given by emax

plot_phot(phot_sum, xcross)

Plot each of the x-sections in xcross

read_phot([photfile])

Read a valid Python photometry file and split the inputs up into a table that contains the header lines for each set of x-sections and a list of tables, one table for each transition.

redo_one([phot_file, outroot])

steer(argv)

This is just a steering routine

write_phot_tab(out_name, xsum, xcross)

Write the tables that have been used as port of the analysis out into a valid Phot file for use with python.