py_read_output

Reads outputs from simulation runs.

Synopsis:

This program enables one to read outputs from the Python radiative transfer code. Where possible, we use the astropy.io module to read outputs. There are also a number of routines for processing and reshaping various data formats

see https://github.com/agnwinds/python/wiki/Useful-python-commands-for-reading-and-processing-outputs for usage

Usage:

Arguments:

Functions

read_convergence(root)

check convergence in a diag file

read_emissivity(root)

Read macro atom emissivities from a root diag file.

read_pf(root)

reads a Python .pf file and returns a dictionary

read_spectrum(filename)

Load data from a spectrum output file from the radiative transfer code Python

read_spectrum_to_class(filename[, new])

reads a Python .spec file and places in specclass array, which is returned

read_swind(filename[, return_inwind, mode, ...])

read a swind output file using np array reshaping and manipulation

read_swind_summary(filename[, ...])

read a swind output file using np array reshaping and manipulation

setpars()

set some standard parameters for plotting

thinshell_read(root)

Read swind output filename for thin shell models with one cell

write_pf(root, pf_dict)

writes a Python .pf file from a dictionary