Last modified: December 2019

URL: https://cxc.cfa.harvard.edu/sherpa/ahelp/show_model.html
AHELP for CIAO 4.12 Sherpa v1

show_model

Context: info

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").

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

Examples

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.


Changes in CIAO 4.12

PAGER environment variable is no-longer used

Paging of the screen output is now handled by Python rather than using an external tool defined by the PAGER environment variable. This means that paged output should now appear in Jupyter notebooks.


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_proj, show_source, show_stat