parseImfitShape

Return to directory of Todd's CASA extensions

Parses the values from the 'shape' keyword of an imfit dictionary. Used by imfitparse and imfitparseCLB.

Usage:

au.parseImfitShape(imfitShapeDict)
Returns:
  • 6 values: majorarcsec, minorarcsec, posangle(degrees), majorarcsecerr, minorarcsecerr, posangleerr(degrees)

Example:

CASA <4>: mydict = imfit('band6.continuum_ap_highres.image.tt0.pbcor',box='300,532,334,563')
CASA <5>: au.parseImfitShape(mydict['results']['component0']['shape'])
  Out[5]:
(0.2809401687381061,
 0.2092470596510809,
 97.82643389959928,
 0.02064449259306341,
 0.012601685030372303,
 8.16282871077721)

-- ToddHunter - 2016-06-06
Topic revision: r1 - 2016-06-06, 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