read_xstable_model¶
-
sherpa.astro.xspec.
read_xstable_model
(modelname, filename)[source] [edit on github]¶ Create a XSPEC table model.
XSPEC additive (atable, 1) and multiplicative (mtable, 2) table models are supported.
- Parameters
modelname (str) – The identifier for this model component.
filename (str) – The name of the FITS file containing the data, which should match the XSPEC table model definition 3.
- Returns
tablemodel
- Return type
XSTableModel instance
References
- 1
https://heasarc.gsfc.nasa.gov/docs/xanadu/xspec/manual/XSmodelAtable.html
- 2
https://heasarc.gsfc.nasa.gov/docs/xanadu/xspec/manual/XSmodelMtable.html
- 3
https://heasarc.gsfc.nasa.gov/docs/heasarc/ofwg/docs/general/ogip_92_009/ogip_92_009.html
Examples
Load in the XSPEC table model from the file ‘bbrefl_1xsolar.fits’ and create a model labelled ‘xmdl’, which is then returned:
>>> mdl = read_xstable_model('xmdl', 'bbrefl_1xsolar.fits') >>> print(mdl)