Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: imagefitter.componentlist - Function Up: imagefitter - Tool Previous: imagefitter - Tool


imagefitter - Constructor



Package general
Module images
Tool imagefitter


Construct an Imagefitter


Synopsis
imagefitter(infile, region, parent, residual, maxpix, widgetset)


Arguments

infile in The image file name or image tool
    Allowed: The file name or an Image tool
region in The region of interest to display
    Allowed: Region tool
    Default: Whole image
parent in Parent frame to embed GUI in
    Allowed: Tk frame agent
    Default: F
residual in Residual image file name
    Allowed: String
    Default: Temporary image
maxpix in Maximum number of pixels to fit without query
    Allowed: Integer
    Default: 256*256
widgetset in The widgetset to use for the GUI
    Allowed: A widgetserver tool
    Default: ddlws


Returns
imagefitter tool



Description

This is the constructor. You must specify the image file either by its name or by giving an image tool. You may optionally embed the display in an existing Tk frame (parent) if you wish. This constructor does a fair amount of work, so be a little patient if need be.

The input image is copied (and any specified region applied); this copied image is used should you choose to subtract any model fits (via the GUI). If you specify the argument residual, then the copied image is saved in a file of this name. If you leave residual unspecified, a temporary image will be created and used for model subtractions, but it will be destroyed when you terminate the Imagefitter.

See the description at the top of this document to find details on operating the Imagefitter interface.



Example
- myfitter := imagefitter(infile='ngc1313.cube')
- myfitter.done()
- im := image('ngc1313.cube')
- myfitter := imagefitter(infile=im, residual='ngc1313.resid')

These examples show the two ways to use the infile argument. In the first case we indicate that should we subtract models from the image, that they should be subtracted from the image file called ngc1313.cube. In the second case we indicate that should we subtract models from the image, that the input image is not changed, and the residuals are written to the image file called ngc1313.resid.





next up previous contents index
Next: imagefitter.componentlist - Function Up: imagefitter - Tool Previous: imagefitter - Tool   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01