Create and plot the flux distributions of Sherpa models (CIAO contributed package)
from sherpa_contrib.flux_dist import *
The
sherpa_contrib.flux_dist
module provides routines for creating and plotting flux distributions
of Sherpa models, that is the distribution of flux values that
accounts for uncertainties in the model parameter values.
It is provided as part of the
CIAO contributed scripts package.
The module can be loaded into Sherpa by saying either of:
from sherpa_contrib.flux_dist import *
from sherpa_contrib import *
where the second form loads in all the Sherpa contributed routines,
not just the flux_dist module.
The module currenly provides the following routines:
-
plot_photon_flux() - plot the photon flux distribution
-
sample_photon_flux() - sample from the photon flux distribution
-
plot_energy_flux() - plot the energy flux distribution
-
sample_energy_flux() - sample from the energy flux distribution
-
write_arrays() - write out arrays to an ASCII file
See the ahelp file for the routine and the
contributed scripts page for further information.
See the
bugs pages
for an up-to-date listing of known bugs.
|