complexToAmplitude

Return to directory of Todd's CASA extensions

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

Usage:

au.complexToAmplitude(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.complexToAmplitude('uid*complex')
au.complexToAmplitude(['uid1', 'uid2'])

-- ToddHunter - 2014-02-26
Topic revision: r4 - 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