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 2008

URL: http://cxc.harvard.edu/sherpa4.1/show_model.py.html
AHELP for Sherpa 4.1

show_model

Context: py.sherpa

Synopsis

Display the convolved source model

Syntax

show_model([id, outfile=None, clobber=False] )

Description

The show_model command displays the convolved source model. To obtain the unconvolved model information, use the command show_source ("ahelp show_source").

  • id - the id of the dataset to use; default is to show model information for all available datasets.
  • outfile - name of the file in which to store the information
  • clobber - a Boolean switch which indicates whether or not the 'outfile' should be overwritten, if the file already exists; default=False

The command output looks like:

Model: 1
apply_rmf(apply_arf((50000.0 * (xsphabs.abs1 * powlaw1d.p1))))
   Param        Type          Value          Min          Max      Units
   -----        ----          -----          ---          ---      -----
   abs1.nh      thawed    0.0349312            0       100000 10^22 atoms / cm^2
   p1.gamma     thawed      1.72895          -10           10
   p1.ref       frozen            1 -3.40282e+38  3.40282e+38
   p1.ampl      thawed  4.24936e-05            0  3.40282e+38

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 1

sherpa> show_model()

Print the model information for all datasets to the screen.

Example 2

sherpa> show_model(2, "sherpa.model", True)

Write the model information for dataset id=2 to the file "sherpa.model", clobbering any existing file with the same name.

Bugs

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

Last modified: December 2008



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.