Produced by IDL 7.1.1
User Documentation

./guide
boxcar.pro

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

boxcar

procedure boxcar, width, [buffer=integer], [/decimate]

Smooth the primary data container (the PDC, !g.s[0]) with a boxcar of a certain width, in channels.

Replaces the contents of the data being smoothed with the smoothed data.

For odd width, this uses the built-in idl SMOOTH function. For even widths this uses doboxcar1d and the reference channel is moved left by 1/2 channel width.

Other buffers (0 to 15) can be used instead of the PDC by supplying a value for the buffer keyword.

For spectrum data containers, the frequency_resolution is set using estboxres

Examples
   getps, 25            ; get some data into the PDC
   copy,0,10            ; for use later in this example
   copy,0,11            ; also for use later
   boxcar, 3            ; 3 channel boxcar smooth
   boxcar, 5, buffer=10 ; 5 channel smooth on buffer 10
   show,10              ; show the smoothed result
   copy,11,0            ; unsmoothed copy back to the PDC
   boxcar, 5, /decimate ; with decimation
 
Uses
doboxcar1d dcextract
Version
$Id$

Parameters
width
in, required
integer
Width of boxcar in channels.

Keywords
buffer
in, optional
integer (def. 0)
global buffer number to use (0-15).
decimate
in, optional
boolean
If set, the data container is reduced - taking every width channels starting at channel 0.


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