SCULIB_SQROOTR

take the square root of a real array

Description:

Puts square root of real input array into output array. If FLAGGED and QUALITY are both false then negative input numbers give a zero output. If FLAGGED is true then input bad values, or negative input numbers, give a bad output. If QUALITY is true then input values with bad quality, or negative input numbers, lead to zero output data and bad output quality.

Invocation

CALL SCULIB_SQROOTR (N, IN_DATA, IN_QUAL, ROOT, ROOT_QUAL, QUALITY, FLAGGED)

Arguments

N = INTEGER (Given)
the number of array elements
IN_DATA (N) = REAL (Given)
the array whose root is to be taken
IN_QUAL (N) = INTEGER (Given)
the quality on the input data
ROOT (N) = REAL (Returned)
the array to hold the square roots (may be the same as IN_DATA)
ROOT_QUAL (N) = INTEGER (Returned)
the quality on the output root
QUALITY = LOGICAL (Given)
.TRUE. if input quality array exists
FLAGGED = LOGICAL (Given)
.TRUE. if input data has flagged values

Notes:

Consider using VEC_SQRTR (SUN/39) instead.

Copyright

Copyright ©1995,1996,1997,1998,1999 Particle Physics and Astronomy Research Council. All Rights Reserved.

Implementation Status:

Uses INTEGER rather than BYTE Quality.