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: