next up previous
Next: The Distinction between Base NDFs and Sections
Up: NDF SECTIONS
Previous: The Need for NDF Sections

Creating NDF Sections   

An NDF section may be created using the routine NDF_SECT. For instance:

      INTEGER NDIM, LBND( NDIM ), UBND( NDIM )

      ...

      CALL NDF_SECT( INDF1, NDIM, LBND, UBND, INDF2, STATUS )

will create an NDF section starting from an NDF with identifier INDF1, and will return a new identifier INDF2 which refers to the section. The set of pixels in the original NDF to which the new section should refer is determined by the arguments NDIM, LBND and UBND.

These arguments not only specify the set of original pixels to which the new section should refer, but also directly determine the shape (i.e. the pixel-index bounds and the dimensionality) of the new section. For instance, a call to NDF_BOUND using the new identifier INDF2 would return the same values as had originally been specified in the call to NDF_SECT.[*]



next up previous
Next: The Distinction between Base NDFs and Sections
Up: NDF SECTIONS
Previous: The Need for NDF Sections


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