Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: image.setrestoringbeam - Function Up: image - Tool Previous: image.setmiscinfo - Function


image.shape - Function



Package general
Module images
Tool image


Length of each axis in the image


Synopsis
shape()


Returns
Vector of integers or fail


Description

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 has been separated out into a separate function.



Example
- imshape := im.shape()
- npixels := prod(imshape)    # imshape[1]*imshape[2]*...*imshape[n]





next up previous contents index
Next: image.setrestoringbeam - Function Up: image - Tool Previous: image.setmiscinfo - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01