About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2008

URL: http://cxc.harvard.edu/sherpa4.1/image_fit.py.html
AHELP for Sherpa 4.1

image_fit

Context: py.sherpa

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.

Last modified: December 2008



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