KPG1_GTAXI

Selects Frame axes using an environment parameter

Description:

This routine returns the indices of selected axes in a supplied Frame. The axes to select are determined using the supplied environment parameter. Each axis can be specified either by giving its index within the Frame in the range 1 to the number of axes in the Frame, or by giving its symbol. Spectral, time and celestial longitude/latitude axes may also be specified using the options " SPEC" , " TIME" , " SKYLON" and " SKYLAT" . If the first value supplied in AXES is not zero, the supplied axes are used as the dynamic default for the parameter. The parameter value should be given as a GRP group expression, with default GRP control characters.

Invocation

CALL KPG1_GTAXI( PARAM, FRAME, NAX, AXES, STATUS )

Arguments

PARAM = CHARACTER ( ) (Given)
The name of the parameter to use.
FRAME = INTEGER (Given)
An AST pointer for the Frame from which axes may be chosen.
NAX = INTEGER (Given)
The number of axes which must be selected.
AXES( NAX ) = INTEGER (Given and Returned)
On entry, the axes to be specified as the dynamic default for the parameter (if AXES( 1 ) is not zero). On exit, the indices of the selected axes. If AXES(1) is zero the supplied values are ignored and a PAR__NULL status value is returned if a null (!) value is supplied for the parameter. Otherwise, the PAR_NULL status is annulled if a null value is supplied, and the supplied axes are returned.
STATUS = INTEGER (Given and Returned)
The global status.

Notes: