imageImstats
Return to directory of Todd's CASA extensions
Runs
imageImstat on a list of images and reports back a list of values of a keyword.
See also
imagePeak,
imageSnr,
imageStd, and
imageCentroid
to operate on images without using the casa imstat task.
Usage:
au.imageImstats(images, region='', keyword='flux', index=0, verbose=False)
Inputs:
- img: name of CASA image
- region: region to examine (default = whole image)
- keyword: the dictionary key to extract and return
- index: the index of the array to choose
- verbose: if True, print the dictionary returned by imstat
Example:
CASA <11>: maxs = au.imageImstats('band6_9exec.commonMask.noobs*.image',region='both_arcs.crtf',keyword='max')
band6_9exec.commonMask.noobs0.image: 0.000140
band6_9exec.commonMask.noobs1.image: 0.000144
band6_9exec.commonMask.noobs2.image: 0.000138
band6_9exec.commonMask.noobs3.image: 0.000145
band6_9exec.commonMask.noobs4.image: 0.000137
band6_9exec.commonMask.noobs5.image: 0.000142
band6_9exec.commonMask.noobs6.image: 0.000137
band6_9exec.commonMask.noobs7.image: 0.000136
band6_9exec.commonMask.noobs8.image: 0.000139
CASA <12>: maxs
Out[12]:
[0.00013988862338010222,
0.00014430755982175469,
0.00013818053412251174,
0.00014470952737610787,
0.00013704209413845092,
0.00014181833830662072,
0.00013650882465299219,
0.00013609678717330098,
0.00013887281238567084]
--
ToddHunter - 2015-02-10