Produced by IDL 7.1.1
User Documentation

./guide
avgstack.pro

Last modification date:
Wed Sep 28 13:27:08 2016

avgstack

procedure avgstack, [/noclear], [useflag=boolean or string], [skipflag=boolean or string], [/keep]

Average the records listed in the stack.

The data retrieval is done using getchunk. See the documentation there for a longer discussion on the useflag and skipflag keywords also found here.

Examples
Add index number 25, 30 through 39, and the odd indexes from 41 through 51 to the stack, and average them.
    addstack, 25
    addstack, 30, 39
    addstack, 41, 51, 2
    avgstack
 

An example showing the use of the /noclear keyword.

    addstack, 25
    addstack, 30, 39
    avgstack, /noclear      ; see the result so far, do not clear it
    emptystack
    addstack, 50, 90, 2 
    avgstack                ; builds on the previous result
                            ; cleared after this use of avgstack
 
Version
$Id$

Keywords
noclear
in, optional
boolean
If this is set, the accum buffer is not cleared prior to averaging the records
useflag
in, optional
boolean or string (def. true)
Apply all or just some of the flag rules?
skipflag
in, optional
boolean or string
Do not apply any or do not apply a few of the flag rules?
keep
in, optional
boolean
If this is set, the records are fetched from the keep file.


Produced by IDLdoc 1.6 on Wed Sep 28 13:27:33 2016