|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide boxcar.pro
boxcar |
Smooth a guide data container with a boxcar smoothing of a certain width, in channels. 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.
Replaces the contents of the data being smoothed with the smoothed data. This can not use dcboxcar because system variables (e.g. !g.s[0]) are passed by value and hence dcboxcar can not overwrite the data container in that case.
The continuum side needs more work, especially for the decimate case and the even boxcar case.
Parameters | |
width |
Width of boxcar in channels. |
Keywords | |
index |
guide data container to use. |
decimate |
If set, the data container is reduced - taking every width channels starting at channel 0. |