|
User Documentation |
|||||||||
| prev file | next file | ||||||||||
| SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox dcdecimate.pro
| 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.
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
| Parameters | |
|
dc |
data container (spectrum or continuum) |
|
nchan |
choose every nth channel starting at startat. |
| Keywords | |
|
startat |
The starting channel. |
|
ok |
Returns 1 if everything went ok, 0 if it did not (missing parameters, invalid or empty dc, bad startat) |