Synopsis
Load a XSPEC table model.
Syntax
load_xstable_model(modelname, filename) modelname - str filename - str
Description
Create an additive ( atable , [1] ) or multiplicative ( mtable , [2] ) XSPEC table model component. These models may have multiple model parameters.
Example
Load in the XSPEC table model from the file 'bbrefl_1xsolar.fits' and create a model component labelled 'xtbl', which is then used in a source expression:
>>> load_xstable_model('xtbl', 'bbrefl_1xsolar.fits') >>> set_source(xsphabs.gal * xtbl) >>> print(xtbl)
PARAMETERS
The parameters for this function are:
Parameter | Definition |
---|---|
modelname | The identifier for this model component. |
filename | The name of the FITS file containing the data, which should match the XSPEC table model definition [3] . |
Notes
NASA's HEASARC site contains a link to community-provided XSPEC table models [4] .
References
- [1] http://heasarc.gsfc.nasa.gov/docs/xanadu/xspec/manual/XSmodelAtable.html
- [2] http://heasarc.gsfc.nasa.gov/docs/xanadu/xspec/manual/XSmodelMtable.html
- [3] http://heasarc.gsfc.nasa.gov/docs/heasarc/ofwg/docs/general/ogip_92_009/ogip_92_009.html
- [4] https://heasarc.gsfc.nasa.gov/xanadu/xspec/newmodels.html
XSPEC version
CIAO 4.13 comes with support for version 12.10.1s of the XSPEC models. This can be checked with the following:
% python -c 'from sherpa.astro import xspec; print(xspec.get_xsversion())' 12.10.1s
Bugs
See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.
See Also
- modeling
- load_table_model