complexToSquare

Return to directory of Todd's CASA extensions

Uses immath to convert a complex image (or a list of images) into its square (amplitude**2). Useful for ALMA holography and TICRA model images. See also complexToAmplitude, complexToImaginary, and complexToReal.

Usage:

au.complexToSquare(filelist, regrid=False, outdir='', normalize=False)
  • regrid: if True, then rewrite the header with Direction coordinates using convertImageToDirectionType (to allow imfit)
  • outdir: the output directory in which to write the new image
  • normalize: if True, then call au.normalizeImage after converting

Examples:

au.complexToSquare('uid*complex')
au.complexToSquare(['uid1', 'uid2'])

-- ToddHunter - 2013-12-16

This topic: ALMA > TWikiUsers > ToddHunter > CasaExtensions > ComplexToSquare
Topic revision: 2014-03-25, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback