Usage of imstatparse

Return to directory of Todd's CASA extensions

This function accepts a dictionary result from imstat is passed in via the 'imstatdict' argument, and a string is returned containing the position of component 0 in RA/Dec sexagesimal, followed by its peak intensity, rms and total flux density. The units of size (Major and Minor axes) is typically arcsec, while the Position angle is typically in degrees. See also imfitparse.

The returned string contains: RA Dec [separation] PeakIntensity RMS Flux

Usage:

au.imstatparse(imstatdict, prec=4, stokes=0, refpos='', separationprec=2, fluxunit='Jy')
  • imstatdict: a dictionary returned by imstat
  • optional parameters:
    • stokes: which Stokes parameter of the result to return (default = 0 = "I")
    • prec: the number of digits after the decimal point to show for the flux density
    • refpos: a sexagesimal string (e.g. HH:MM:SS.SSS +DD:MM:SS.SSSS) specifying a reference position. If specified, also compute the separation from this position, and insert it in the output string after the rms field. The RA and Dec part of the string can be separated either by a comma or a space. The Dec portion of the string can be either : or . delimited.
    • separationprec: the number of digits after the decimal point to show for the separation angle from the refpos
    • fluxunit: set to 'mJy' to multiply values by 1000

Example:

CASA <2>: mydict = imstat('IN_VEX_1.3mmContin_all_ap.image.pbcor', region='box [[17:20:54.88433, -035.45.04.3513], [17:20:54.76994, -035.45.03.0249]] coord=J2000')
CASA <3>: au.imstatparse(mydict)
  Out[3]: '17:20:54.835  -35:45:03.670  0.0103 0.0045'

-- ToddHunter - 2013-04-19
Topic revision: r5 - 2013-08-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