|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide boxcar.pro
boxcar |
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
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
Parameters | |
width |
Width of boxcar in channels. |