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


next up previous contents index
Next: image.moments - Function Up: image - Tool Previous: image.modify - Function


image.maxfit - Function



Package general
Module images
Tool image


Find maximum and do parabolic fit in the sky


Synopsis
maxfit(region, point, width, negfind, list)


Arguments

region in The 2-D region of interest to fit
    Allowed: Region tool
    Default: Whole image
point in Find only point sources ?
    Allowed: T or F
    Default: T
width in Half-width of fit grid when point=F
    Allowed: Integer
    Default: 5
negfind in Find negative sources as well as positive ?
    Allowed: T or F
    Default: F
list in List the fitted parameters to the logger ?
    Allowed: T or F
    Default: T


Returns
Componentlist tool or fail



Description

This function finds the pixel with the maximum value in the region, and then uses function findsources to generate a Componentlist with one component. The component will be of type Point (point=T) or Gaussian (point=F).

If negfind=F the maximum pixel value is found in the region and fit. If negfind=T the absolute maximum pixel value is found in the region and fit.

See function findsources for a description of arguments point and width.

See also the function fitsky.



Example
- myim := imagemaketestimage()
- cl := myim.maxfit()
- cl.edit(1)                  # There is only one component





next up previous contents index
Next: image.moments - Function Up: image - Tool Previous: image.modify - Function   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