KPG1_AXGVx

Finds the first axis centre co-ordinate of an NDF above a threshold

Description:

This routine determines the element number and value of the first axis centre co-ordinate of an NDF above a given threshold. Currently, it assumes that the centre values increase or decrease monotonically from the first to the last elements.

A SAI__ERROR status is returned when no centre value exceeds the threshold.

Invocation

CALL KPG1_AXGVx( EL, CENTRE, THRESH, ITH, VALTH, STATUS )

Arguments

EL = INTEGER (Given)
The number of elements in the axis.
CENTRE( EL ) = ? (Given)
The NDF axis centre co-ordinates.
THRESH = ? (Given)
The threshold.
ITH = INTEGER (Returned)
The index number of the element that first exceeds the threshold, or its negative when the co-ordinates decrease with increasing element number.
VALTH = ? (Returned)
The centre co-ordinate that first exceeds the threshold.
STATUS = INTEGER (Given and Returned)
The global status.

Notes: