Produced by IDL 7.1.1
User Documentation

./toolbox
dcsmooth.pro

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

dcsmooth

procedure dcsmooth, dc, newres, [/decimate], [ok=variable]

Smooth the data with a GAUSSIAN such that the spectrum in the given data container 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(newres2-oldres^2).

Examples
    ; dc already exists and is a valid data container
    ; smooth to 2 channels
    dcsmooth,dc,2
    ; do it again, now to 4 channels, decimate this time
    dcsmooth,dc,4,/decimate
 
Uses
data_valid dcconvol dcdecimate make_gauss_data
Version
$Id$

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

Keywords
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).
ok
out, optional
variable
Returns 1 if everything went ok, 0 if it did not (missing parameter, empty or invalid dc, bad kernel).


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