Produced by IDL 6.1
User Documentation

./guide
boxcar.pro

Last modification date:
Thu Jun 2 23:56:08 2005

boxcar

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

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.

Uses
doboxcar1d dcextract
Version
$Id: boxcar.pro,v 1.3 2005/06/02 17:09:44 bgarwood Exp $

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

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


Produced by IDLdoc 1.6 on Thu Jun 2 23:56:46 2005