KPG1_TRIGx

Applies a trigonometric function to each element of a vectorised array

Description:

The routine applies a specified trigonometric function to each element of a vectorised array. Any associated variance values are also modified appropriately.

Invocation

CALL KPG1_TRIGx( BAD, VAR, TRIGFN, EL, DIN, VIN, DOUT, VOUT, NBAD, STATUS )

Arguments

BAD = LOGICAL (Given)
Whether to check for bad values in the input arrays.
VAR = LOGICAL (Given)
Have associated variances been supplied?
TRIGFN = CHARACTER() (Given)
The required trig function. This should be one of SIN, COS, TAN, SIND, COSD, TAND, ASIN, ACOS, ATAN, ASIND, ACOSD, ATAND.
EL = INTEGER (Given)
Number of array elements to process.
DIN( EL ) = ? (Given)
Input data array.
VIN( EL ) = ? (Given)
Input variance array. Only accessed if VAR is .TRUE.
DOUT( EL ) = ? (Given)
Output data array.
VOUT( EL ) = ? (Given)
Output variance array. Only accessed if VAR is .TRUE.
NBAD( 2 ) = INTEGER (Returned)
Element 1 has the number of bad values stored in DOUT, and Element 2 has the number of bad values stored in VOUT.
STATUS = INTEGER (Given and Returned)
The global status.

Notes: