next up previous
Next: ARY_SBAD - Set the bad-pixel flag for an array
Up: Routine Descriptions
Previous: ARY_RESET - Reset an array to an undefined state

ARY_SAME  -  Enquire if two arrays are part of the same base array

Description:
The routine determines whether two array identifiers refer to parts of the same base array. If so, it also determines whether they intersect.

Invocation:
CALL ARY_SAME( IARY1, IARY2, SAME, ISECT, STATUS )

Arguments:
IARY1 = INTEGER (Given)
Identifier for the first array (or array section).
IARY2 = INTEGER (Given)
Identifier for the second array (or array section).
SAME = LOGICAL (Returned)
Whether the identifiers refer to parts of the same base array.
ISECT = LOGICAL (Returned)
Whether the arrays intersect.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:
  • Two arrays (or array sections) are counted as intersecting if (i) they both refer to the same base array and (ii) altering values in one of the arrays can result in the values in the other array changing in consequence.



next up previous
Next: ARY_SBAD - Set the bad-pixel flag for an array
Up: Routine Descriptions
Previous: ARY_RESET - Reset an array to an undefined state



ARY A Subroutine Library for Accessing ARRAY Data Structures
Starlink User Note 11
R.F. Warren-Smith
28th April 1998
E-mail:rfws@star.rl.ac.uk