next up previous 237
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 237
Next: ``Safe'' Dimension Sizes under Error Conditions
Up: NDF SHAPE AND SIZE INFORMATION
Previous: Dimension Sizes

NDF [1ex
Starlink User Note 33
R.F. Warren-Smith & D.S. Berry
5th January 2009
E-mail:ussc@star.rl.ac.uk

Copyright © 2010 Science and Technology Facilities Council