Display the unconvolved source model
show_source([id, outfile=None, clobber=False] )
The show_source command displays the unconvolved source model. To obtain the convolved model information, use the command show_model ("ahelp show_model").
- id - the id of the dataset to use; default is to show source 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 (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
Print the source information for all datasets to the screen.
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.
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.
See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.