About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: April 2009

URL: http://cxc.harvard.edu/ciao4.1/sherpa_flux_dist.py.html
Jump to: Description Bugs


AHELP for CIAO 4.1

sherpa_flux_dist

Context: py.sherpa_contrib

Synopsis

Create and plot the flux distributions of Sherpa models (CIAO contributed package)

Syntax

from sherpa_contrib.flux_dist import *

Description

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.

Loading the routines

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.

Contents

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.

Bugs

See the bugs pages for an up-to-date listing of known bugs.

Last modified: April 2009



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.