next up previous 237
Next: NDF_NEW - Create a new simple NDF
Up: FORTRAN ROUTINE DESCRIPTIONS
Previous: NDF_NBLOC - Determine the number of blocks of adjacent pixels in an NDF


NDF_NCHNK - Determine the number of chunks of contiguous pixels in an NDF

Description:
The routine determines the number of "chunks" (i.e. sections) of contiguous pixels that can be obtained from an NDF, subject to the constraint that no chunk should contain more than a specified maximum number of pixels. More specifically, given the maximum number of pixels in a chunk (MXPIX), this routine returns the maximum value which can be supplied for the ICHUNK argument of the routine NDF_CHUNK if a valid NDF identifier for a chunk of contiguous pixels is to be returned.

Invocation:
CALL NDF_NCHNK( INDF, MXPIX, NCHUNK, STATUS )

Arguments:

INDF = INTEGER (Given)
NDF identifier.
MXPIX = INTEGER (Given)
Maximum number of contiguous pixels required in each chunk.
NCHUNK = INTEGER (Returned)
Number of chunks which can be obtained from the NDF.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:



next up previous 237
Next: NDF_NEW - Create a new simple NDF
Up: FORTRAN ROUTINE DESCRIPTIONS
Previous: NDF_NBLOC - Determine the number of blocks of adjacent pixels in an NDF

NDF [1ex
Starlink User Note 33
R.F. Warren-Smith & D.S. Berry
16th July 2012
E-mail:starlink@jiscmail.ac.uk

Copyright © 2013 Science and Technology Facilities Council