Last modified: December 2013

URL: http://cxc.harvard.edu/sherpa/ahelp/show_source.html
Jump to: Description · Examples · Bugs · See Also


AHELP for CIAO 4.11 Sherpa v1

show_source

Context: info

Synopsis

Display the unconvolved source model

Syntax

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

Description

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

The command output looks like:

Model: 1
(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

Examples

Example 1

sherpa> show_source()

Print the source information for all datasets to the screen.

Example 2

sherpa> show_source(2, "sherpa.source", True)

Write the source information for dataset id=2 to the file "sherpa.source", 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.

See Also

filtering
show_filter
info
list_bkg_ids, list_functions, show_all, show_bkg_model, show_bkg_source, show_conf, show_covar, show_data, show_fit, show_method, show_model, show_proj, show_stat