calculate photon flux. XSpec convolution model *Experimental*.
A convolution model to calculate the photon flux of other model components.
|1||Emin||Minimum energy over which flux is calculated (keV)|
|2||Emax||Maximum energy over which flux is calculated (keV)|
|3||Flux||Photon flux in photon/cm^2/s|
Loading the X-Spec convolution models
Please see ahelp xsconvolve for information on how to load the model.
- This is an experimental release of the convolution models; please take care when using this model.
- When cpflux is used with multiple additive models, the normalization of one of the additive models must be fixed to a non-zero value.
- The energy range defined by the Emin and Emax parameters must lie inside the energy range of the response matrix.
- If the model to which cpflux is applied integrates to zero then a divide-by-zero error will occur and the fit will likely fail due to the presence of NaN values.
This information is taken from the XSpec User's Guide. Version 12.10.0e of the XSpec models is supplied with CIAO 4.11.
sherpa> from sherpa_contrib.xspec.xsconvolve import load_xscpflux sherpa> load_xscpflux("cpflux") sherpa> xsphabs.gal() sherpa> xspowerlaw.pl() sherpa> xsgaussian.gs() sherpa> cpflux.emin = 0.5 sherpa> cpflux.emax = 7 sherpa> set_source(cpflux(gal * (pl + gs)))
Flux of the absorbed model
If the power-law or gaussian normalization is fixed to a non-zero value then the above will calculate the photon flux and error on the entire model (absorbed). The energy range is taken to be 0.5 to 7 keV.
sherpa> set_source(gal * cpflux(pl + gs)))
Flux of the un-absorbed model
If the power-law or gaussian normalization is fixed to a non-zero value then this calculates the unabsorbed photon flux and error.
sherpa> set_source(gal * (pl + cpflux(gs)))
Flux of a component
If the gaussian normalization is fixed to a non-zero value then this calculates the unabsorbed photon flux and error of the gaussian component.
About Contributed Software
This script is not an official part of the CIAO release but is made available as "contributed" software via the CIAO scripts page. Please see this page for installation instructions - such as how to ensure that the parameter file is available.
For a list of known bugs and issues with the XSPEC models, please visit the XSPEC bugs page.
- list_model_components, list_models, load_xscflux, load_xsclumin, load_xsgsmooth, load_xsireflect, load_xskdblur, load_xskdblur2, load_xskerrconv, load_xslsmooth, load_xspartcov, load_xsrdblur, load_xsreflect, load_xsrfxconv, load_xsrgsxsrc, load_xssimpl, load_xsvashift, load_xsvmshift, load_xsxilconv, load_xszashift, load_xszmshift, models, tablemodel, xs, xsconvolve