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


next up previous contents index
Next: imager.ft - Function Up: imager - Tool Previous: imager.filter - Function


imager.fitpsf - Function



Package synthesis
Module imager
Tool imager


Fit the point spread function, making psf image first if needed


Synopsis
fitpsf(psf, bmaj, bmin, bpa, async)


Description
This fits an elliptical Gaussian to the point spread function and returns the fitted beam parameters. If psf image is not specified then a psf is made and used. The values for the beam fit are saved internally and used whenever needed (for example in the functions restore or smooth) until invalidated. The values are invalidated by setdata, setimage or any tool function that changes the weights. Use the function summary to check if there is a valid fitted psf stored internally.



Arguments

psf in Name of input psf
Allowed: String
bmaj out Major axis of beam
Allowed: Quantity record
bmin out Minor axis of beam
Allowed: Quantity record
bpa out Position angle of beam
Allowed: Quantity record
async Run asynchronously in the background
Allowed: Bool
Default: !dowait


Returns
Bool


Example
- imgr.makeimage(type='psf', image='3C273XC1.psf')
- majaxis:=[=]; minaxis:=[=]; pangle:=[=]
- imgr.fitpsf('3C273XC1.psf', bmaj=majaxis, bmin=minaxis, bpa=pangle, async=F)
- print bmaj, bmin, bpa
- imgr.restore(model='bla' , complist='', image='bla.restored' , residual='bla2.residual' )

Or if one wants to generate a psf from the uv coverage and use that subsequently as in the following example:

- imgr.fitpsf(psf='')
- imgr.restore(model='bla' , complist='', image='bla.restored' , residual='bla2.residual' )





next up previous contents index
Next: imager.ft - Function Up: imager - Tool Previous: imager.filter - 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-10-15