|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide accum.pro
accum |
procedure accum[, accumnum], [weight=float], [dc=spectrum or integer] |
This procedure adds a data container to the accum buffer, in preparation for averaging. The PDC (!g.s[0]) is used by default but an alternate data container can be specified using the 'dc' keyword.
The first data container accum'ed in each buffer is used as a template for that buffer and subsequent data containers accum'ed to that buffer must match in number of channels and frequency range.
There are four accum buffers available to that the user can average polarizations simultaneously, but separately, if it is desired to do so.
See: accum.pro
sclear getrec,1 accum getrec,2 accum ave
Average two polarizations separately for some position switched scans
sclear ; clears accum buffer 0 sclear, 1 ; clears accum buffers 1 getps,32,plnum=0 accum, 0 getps,32,plnum=1 accum, 1 getps,34,plnum=0 accum, 0 getps,34,plnum=1 accum, 1 ave,1 ; Average plnum=1 data and store ; the result in the PDC copy,0,1 ; Copy the result to DC 1 ave, 0 ; Average plnum=0 data oshow, 1 ; Overplot the plnum=1 average
Parameters | |
accumnum |
accum buffer. Defaults to the primary buffer (accumnum = 0). There are 4 buffers total so this value must be between 0 and 3, inclusive. |