next up previous
Next: ``Safe'' Dimension Sizes under Error Conditions
Up: NDF SHAPE AND SIZE INFORMATION
Previous: Dimension Sizes

NDF Size  

The size of an NDF is the total number of pixels lying within its bounds, and is given by the product of the sizes of all its dimensions. Many applications require only this information about an NDF's shape and can conveniently obtain it using the routine NDF_SIZE, as follows:

      CALL NDF_SIZE( INDF, NPIX, STATUS )

This routine returns the total number of pixels via its integer argument NPIX. Note, however, that this same quantity is also returned as a by-product of most routines which directly access the array components of an NDF (see §[*], for example), so a call to NDF_SIZE can often be avoided.



next up previous
Next: ``Safe'' Dimension Sizes under Error Conditions
Up: NDF SHAPE AND SIZE INFORMATION
Previous: Dimension Sizes


Starlink User Note 33
R.F. Warren-Smith
11th January 2000
E-mail:rfws@star.rl.ac.uk

Copyright © 2000 Council for the Central Laboratory of the Research Councils