Chandra X-Ray Observatory
	(CXC)
Skip to the navigation links
Last modified: December 2013

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


AHELP for CIAO 4.6 Sherpa v2

show_fit

Context: info

Synopsis

Display the fit information

Syntax

show_fit([outfile=None, clobber=False] )

Description

The show_fit command displays the fit information for the source and/or background ("ahelp fit") .

  • 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:

Optimization Method: NelderMead
name         = simplex
ftol         = 1.19209289551e-07
maxfev       = None
initsimplex  = 0
finalsimplex = 9
step         = None
iquad        = 1
verbose      = 0

Statistic: CStat

Fit:Dataset               = 1
Method                = neldermead
Statistic             = cstat
Initial fit statistic = 4115.59
Final fit statistic   = 470.277 at function evaluation 450
Data points           = 460
Degrees of freedom    = 457
Probability [Q-value] = 0.323838
Reduced statistic     = 1.02905
Change in statistic   = 3645.31
   abs1.nh        0.0349312
   p1.gamma       1.72895
   p1.ampl        4.24936e-05

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_fit()

Print the fit information to the screen.

Example 2

sherpa> show_fit("sherpa.fit", True)

Write the fit information to the file "sherpa.fit", 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_method, show_model, show_proj, show_source, show_stat

Last modified: December 2013
Smithsonian Institute Smithsonian Institute

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-2014. All rights reserved.