DAT_CELL

Locate cell

Description:

Return a locator to a “cell” (element) of an array object.

Invocation

CALL DAT_CELL( LOC1, NDIM, SUB, LOC2, STATUS )

Arguments

LOC1 = CHARACTER  ( DAT__SZLOC ) (Given)
Object locator.
NDIM = INTEGER (Given)
Number of dimensions.
SUB = INTEGER( NDIM ) (Given)
Subscript values.
LOC2 = CHARACTER  ( DAT__SZLOC ) (Returned)
Cell locator.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:

Typically, this is used to locate an element of a structure array for subsequent access to its components, although this does not preclude its use in accessing a single pixel in a 2-D image for example.