The sherpa.astro.utils.xspec module

Parser for XSPEC model files.

The XSPEC library [1] uses ASCII files to define models [2], and it can be useful to be able to read these files either to identify changes to the Sherpa code to support a new XSPEC release [3] or for writing a module for an XSPEC user model.

References

Functions

create_xspec_code(models[, name])

Create the Python classes and C++ code for the models.

parse_xspec_model_description(modelfile[, ...])

Given an XSPEC model file - e.g. the lmodel.dat file - return information about the models it contains.