aryShift

Apply pixel-index shifts to an array

Description:

This function applies pixel-index shifts to an array. An integer shift is applied to each dimension so that its pixel-index bounds, and the indices of each pixel, change by the amount of shift applied to the corresponding dimension. The array’ s pixels retain their values and none are lost.

Invocation

void aryShift( int nshift, const hdsdim ∗shift, Ary ∗ary, int ∗status )

Notes:

Parameters :

nshift
Number of dimensions to which shifts are to be applied (i.e. the length of array " shift" ). This must not exceed the number of array dimensions. If fewer shifts are supplied than there are dimensions in the array, then the extra dimensions will not be shifted.
shift
An array holding the pixel-index shifts to be applied to each dimension.
ary
Array identifier.
status
The global status.