|NRAO Home > CASA > CASA Toolkit Reference Manual||
1.1.1 Length of each axis in the image
The shape of an image is a vector holding the length of each axis of the image. Although this information is also available in the summary function, it is so useful that it can be obtained directly. Both Float and Complex valued images are supported.
print "\t----\t shape Ex 1 \t----"
imshape = ia.shape()
#[10L, 20L, 30L]
# npixels = imshape*imshape*...*imshape[n-1]
for i in range(len(imshape)):
More information about CASA may be found at the CASA web page
Copyright © 2016 Associated Universities Inc., Washington, D.C.