Produced by IDL 7.1.1
User Documentation

./guide
gsmooth.pro

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

gsmooth

procedure gsmooth, newres, [buffer=integer], [/decimate]

Smooth the data with a GAUSSIAN such that the spectrum in the given buffer with an original resolution of frequency_resolution now has a resolution of NEWRES, where NEWRES is expressed in channels.

Optionally also decimate the spectrum by keeping only every NEWRES channels.

The frequency_resolution field is set to newres * abs(frequency_interval) after this procedure is used.

The width of the smoothing Gaussian is sqrt(newres^2-oldres^2).

Examples
   ; smooth to 2 channels wide
   gsmooth, 2
   ; copy that to buffer 1 and smooth it to 4 channels wide
   copy,0,1
   gsmooth, 4, buffer=1
   show, 1
   ; same operation on buffer 0, but decimate
   gsmooth, 4, /decimate
   
Uses
dcsmooth
Version
$Id$

Parameters
newres
in, required
real
The desired new resolution in units of channels. This must be >= the frequency_resolution also expressed in channels. If it is equal to the frequency_resolution then this procedure does not change the data.

Keywords
buffer
in, optional
integer (def. 0)
The data container to smooth to the new resolution. This defaults to the primary data container (0).
decimate
in, optional
boolean
When set, only every NEWRES channels are kept, starting from the original 0 channel. If NEWRES is not an integer, this may not be a wise thing to do (the decimation rounds to the nearest integer).


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