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

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


AHELP for CIAO 4.9 Sherpa v1

image_fit

Context: visualization

Synopsis

Send image of the fit results to ds9.

Syntax

image_fit( [ id, [newframe=False, tile=False, deleteframes=True]] )

Description

Sends the fit results of 2-D image data to the imager--by default, ds9. The images shown are data, model, and residuals, by default each in a different tile of the display.

  • id - the id of the data set to use; if not given, uses the default dataset id (id=1 by default, see "ahelp get_default_id")
  • newframe - add a new frame; default=False
  • tile - tile image frame; default=False
  • deleteframes - delete preexisting frames; default=True

Example

sherpa> image_fit()
sherpa> image_fit(1)
sherpa> image_fit(1, newframe=True, tile=False, deleteframes=True)

The image_fit function can be called with no arguments, in which case fit results associated with the default data set are sent to ds9. By default, images of the data, model and residuals are sent to three new frames, and the frames are tiled for display. The parameter "deleteframes" indicates whether or not any preexisting frames should be deleted before three new frames - containing data, model and residuals - are created.

Bugs

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

See Also

data
load_image, pack_image, unpack_image
fitting
fit
methods
get_iter_method_name, get_iter_method_opt, list_iter_methods, set_iter_method, set_iter_method_opt
modeling
image_model, image_model_component, image_source, image_source_component
plotting
plot_fit
psfs
image_kernel
statistics
get_stat
utilities
calc_chisqr, calc_stat
visualization
contour, contour_data, contour_model, contour_ratio, contour_resid, image_close, image_data, image_deleteframes, image_getregion, image_open, image_ratio, image_resid, image_setregion, image_xpaget, image_xpaset

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:   cxchelp@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2017. All rights reserved.