KPG1_ELNMx

Writes a range of element numbers into an array

Description:

This routine writes numbers sequentially to a one-dimensional array, where the numbers are between defined integer limits and are stepped by 1 (or -1) from one pixel to the next. In other words the array value takes the element number plus an offset. Only the first EL elements can be accommodated in the output array, should the section be larger than this.

Invocation

CALL KPG1_ELNMx( LBND, UBND, EL, ARRAY, STATUS )

Arguments

LBND = INTEGER (Given)
The first value to be written to the output array. If this is larger than argument UBND, the values will decrease by 1 for each element.
UBND = INTEGER (Given)
The last value to be written to the output array, provided there are sufficient elements to accommodate it. If not only EL values will be stored.
EL = INTEGER (Given)
The number of elements in the output array.
ARRAY( EL ) = ? (Returned)
The array into which the sub-array is copied.
STATUS = INTEGER (Given)
The global status.

Notes: