Produced by IDL 7.1.1
User Documentation

./toolbox
dcdecimate.pro

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

dcdecimate

procedure dcdecimate, dc, nchan, [startat=integer], [ok=variable]

This procedure decimates a spectrum (i.e. thins the spectrum by paring every nth channel). The dc argument is modified in place.

The frequency interval and reference channel are adjusted appropriately so that the x-axis labels for the decimated data are still appropriate.

This only works for spectral line data containers.

Examples
    get,index=1
    a = data_new()
    data_copy,!g.s[0],a
    show
    dchanning,a
    show,a
    dcdecimate,a,3
    show,a
    dcdecimate,a,3,startat=1
    show,a
 
Uses
data_valid seq
Version
$Id$

Parameters
dc
in/out, required
variable
data container (spectrum or continuum)
nchan
in, required
integer
choose every nth channel starting at startat.

Keywords
startat
in, optional
integer (def. 0)
The starting channel.
ok
out, optional
variable
Returns 1 if everything went ok, 0 if it did not (missing parameters, invalid or empty dc, bad startat)


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