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

Skip the navigation links
Last modified: December 2007

URL: http://cxc.harvard.edu/sherpabeta/show_all.py.html
AHELP for Sherpa 4.0 Beta show_all Context: py.sherpa

Synopsis

Reports the current state of the Sherpa session

Syntax

show_all()

Description

The show_all() command returns information about the current Sherpa session. This includes data and response files that have been loaded, the current statistic and optimization method, and models that have been defined. The current parameter values for the models are included, and are updated after a fit. Information on the most recent fit is also reported.

The behavior of the screen output is determined by the user's $PAGER environment variable setting, which is usually a variant of "more." To disable paging within show_all() - i.e. print the entire contents, even if it scrolls offscreen - change this setting to "cat" before starting Sherpa:

unix% setenv PAGER cat

unix% sherpa

Example

sherpa> show_all()

Print the current state of the Sherpa session. This session has spectral data with ARF and RMF loaded. The model parameter values reflect the most recent fit.

Optimization Method: LevMar
Statistic:           Cash

Data Set: 1
name           = source_pi.fits
channel        = Int32[1024]
counts         = Int32[1024]
staterror      = None
syserror       = None
bin_lo         = None
bin_hi         = None
grouping       = None
quality        = None
exposure       = 7854.46647487
backscal       = 0.000205020165089
areascal       = 1.0
grouped        = False
subtracted     = False
units          = energy
response_ids   = [1]
background_ids = []

RMF Data Set: 1:1
name     = rmf.fits
detchans = 1024
energ_lo = Float64[1078]
energ_hi = Float64[1078]
n_grp    = Int16[1078]
f_chan   = Int16[1483]
n_chan   = Int16[1483]
matrix   = Float32[436308]
offset   = 1
e_min    = Float64[1024]
e_max    = Float64[1024]

ARF Data Set: 1:1
name     = arf.fits
energ_lo = Float64[1078]
energ_hi = Float64[1078]
specresp = Float32[1078]
bin_lo   = None
bin_hi   = None
exposure = 7854.46650022

Model: 1
apply_rmf(apply_arf((7854.46647487 * (powlaw1d[p1] * xswabs[abs1]))))
   Param        Type          Value          Min          Max      Units
   -----        ----          -----          ---          ---      -----
   p1.gamma     thawed      2.30841          -10           10
   p1.ref       frozen            1      -1e+120       1e+120
   p1.ampl      thawed     0.191288            0       1e+120
   abs1.nh      thawed      2.77275            0       100000 10^22 atoms / cm^2

Fit: 1
Statistic value = 1135.61 at function evaluation 42
Data points = 514
Degrees of freedom = 511
   p1.gamma       2.30841
   p1.ampl        0.191288
   abs1.nh        2.77275

Bugs

See the bugs pages on the Sherpa Beta website for an up-to-date listing of known bugs.

Last modified: December 2007



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.