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.fitprofile - Function Up: image - Tool Previous: image.findsources - Function


image.fitallprofiles - Function



Package general
Module images
Tool image


Fit all 1-dimensional profiles in a region


Synopsis
fitallprofiles(region, axis, mask, ngauss, poly, sigma, fit, resid)


Arguments

region in The region of interest
    Allowed: Region tool
    Default: Whole image
axis in The profile axis
    Allowed: Integer or unset
    Default: Spectral
mask in OTF mask
    Allowed: Boolean LEL expression or mask region
    Default: None
ngauss in Number of Gaussian elements
    Allowed: Int
    Default: 1
poly in Order of polynomial element
    Allowed: Int
    Default: None
sigma in Weights image
    Allowed: String or unset
    Default: unset
fit in Output fitted image file name
    Allowed: String or unset
    Default: None
resid in Output fitted residuals image file name
    Allowed: String or unset
    Default: None


Returns
T or fail



Description
This function fits all of the 1-dimensional profiles in the specified region with a given combination of Gaussians and a polynomial. It makes a separate automatic estimate for each profile before making the fit.

Any masked input pixels do not contribute to the fit. The output mask is a copy of the default input pixel mask (if any); the OTF mask does not contribute. Any other input pixel masks will not be copied. Use function maskhandler if you need to copy other masks too. Use function calcmask if you need to apply the OTF mask to the output.



Example
- myim := image('gc.small')
- myim.fitallprofiles (axis=3, fit='gc.fit')





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