regression_plot

Create plots which compare spectra (and other properties) of two runs of Python.

This may become a basis for some kind of ipython notebook

Command line usage (if any):

usage:

regression_plot.py run1 run2 [model]

where run1 and run 2 are in directories containing the runs to compare. If model is given, then only that model is compared. If model is not given all the models in the dirctory Xcompare

Description:

Primary routines:

doit_two Creates a plot comparing the spectra from one model do_all Runs doit_two for all of the models in the named directories

Notes:

History:

181127 ksl Coding begun

Functions

do_all([run1, run2, outdir])

Compare all of the files spectrum files in a two different regression directorys

doit([run1, run2, model, outdir])

Do something magnificent

doit_two([run1, run2, model, outdir])

In a single plot summarize it all

plot_spec(spec_name1, spec_name2, out)

Compare two detailed output spectra

plot_tot(spec_name1, spec_name2, out)

Compare two detailed output spectra

read_file(filename[, char])

Read a file and split it into words, eliminating comments

read_table([filename, format])

Read a file using astropy.io.ascii and return this

xsmooth(flux[, smooth])

boxcar smooth the flux