|
Getting Started with IDL: Signal Processing with IDL |
|
A simple way to smooth out the NOISY dataset is to use IDL's SMOOTH function. It returns an array smoothed with a boxcar average of a specified width.
SMOOTHED=SMOOTH(NOISY, 5)
IPLOT,SMOOTHED,TITLE='Smoothed Data'
The TITLE keyword draws the title text centered over the plot. Notice that while SMOOTH did a fairly good job of removing noise spikes, the resulting amplitudes taper off as the frequency increases.
IDL Online Help (March 06, 2007)