KPG1_NOISx

Adds random Normal noise to a one-dimensional array

Description:

This routine takes a one-dimensional array and adds noise randomly to each element in the array. The random number at each element is drawn from a Normal distribution whose spread is given by the corresponding variance array at that element.

Invocation

CALL KPG1_NOISx( BAD, EL, VARNCE, ARRAY, STATUS )

Arguments

BAD = INTEGER (Given)
If true there may be bad pixels in input arrays, and so there will be bad-pixel testing.
EL = INTEGER (Given)
The number of elements in the arrays.
VARNCE( EL ) = ? (Given)
The Normal variance array corresponding to the data array.
ARRAY( EL ) = ? (Given and Returned)
The data array to which random errors are to be applied.
STATUS = INTEGER (Given and Returned)
The global status.

Notes: