- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
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:
-
There is a routine for all numeric data types: replace "
x"
in the routine name by B, D, I, R,
UB, UW or W as appropriate. The arrays supplied to the routine must have the data type
specified.
-
All arithmetic is performed in double precision.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑