Produced by IDL 6.1
User Documentation

./guide
add.pro

Last modification date:
Thu Jun 2 23:56:08 2005

add

procedure add[, in1][, in2][, out]

This procedure adds the data from two data containers stored in the global buffers 0-15. If no parameters are passed, then the data from buffers 0 and 1 are added and the result is stored in buffer 0. If two parameters are supplied, they are used as indices into the global data buffers and the result of the addition is stored in data container 0. If three parameters are supplied, then the first two are indices into which data containers are to be added, and the third is the index where the result should be stored.

Examples
    getrec,1
    copy,0,1
    getrec,2
    add            ; The two records are added and the result is stored in buffer 0

    getrec,1
    copy,0,10
    getrec,2
    copy,0,11
    add,10,11,12   ; The data from buffers 10 and 11 are added and the result is stored in buffer 12
 
Uses
dcadd dcpaircheck
Version
$Id: add.pro,v 1.4 2005/05/29 22:44:14 bgarwood Exp $

Parameters
in1
in, optional
integer
Input data container #1
in2
in, optional
integer
Input data container #2
out
in, optional
integer
Output data container


Produced by IDLdoc 1.6 on Thu Jun 2 23:56:46 2005