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

1

https://heasarc.gsfc.nasa.gov/docs/xanadu/xspec/index.html

2

http://heasarc.gsfc.nasa.gov/xanadu/xspec/manual/XSappendixLocal.html

3

https://sherpa.readthedocs.io/en/latest/developer/index.html#update-the-xspec-bindings

Functions

create_xspec_code(models)

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

parse_xspec_model_description(modelfile[, ...])

Given an XSPEC model file - e.g.