|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide gsmooth.pro
gsmooth |
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).
; 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