NRAO Home > CASA > CASA Toolkit Reference Manual
image.deconvolvefrombeam - Function

1.1.1 Helper function to deconvolve the given source Gaussian from a beam Gaussian to return a model Gaussian


Description

This is a helper function. It is to provide a way to deconvolve gaussians from other gaussians if that is what is needed for example removing a beam Gaussian from a Gaussian source. To run this function the tool need not be attached to an image.

The return value is a record that contains the fit param and the return value is a boolean which is set to true if fit model is a point source

Arguments





Inputs

source

Three quantities that define the source majoraxis, minoraxis and Position angle

allowed:

any

Default:

variant

beam

Three quantities that define the beam majoraxis, minoraxis and Position angle

allowed:

any

Default:

variant

Returns
record

Example

 
 
"""  
#  
print "\t----\t deconvolvefrombeam Ex 1 \t----"  
ia.maketestimage()  
recout=ia.deconvolvefrombeam(source=[’5arcmin’, ’3arcmin’, ’20.0deg’], beam=[’50arcsec’,’30arcsec’, ’15deg’])  
ia.close()  
print ’Is pointsource ’, recout[’return’]  
print ’major=’,recout[’fit’][’major’]  
print ’minor=’,recout[’fit’][’minor’]  
print ’pa=’,recout[’fit’][’pa’]  
 
 
 
 
"""  
 

__________________________________________________________________


More information about CASA may be found at the CASA web page

Copyright 2016 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search