Declaration: ResampleSpectra (RsFact, RsOffs, WWidth: integer; SpecGroup: integer; FeedBack: boolean): integer;
Resamples the spectra of all pixels belonging to the spectral group SpecGroup. The parameters RsFact and RsOffs specify the resampling factor and the offset, respectively. If WWidth is greater than zero WWidth data points are averaged to form the new resampled point. Setting this parameter to zero switches off averaging.

Setting Feedback to TRUE activates the script progress bar to provide visual feedback of the process. Please note that unless the script progress bar is already visible you have to make it visible before calling ResampleSpectra, otherwise the feedback will not be displayed. You can activate the script progress bar by calling the function ScriptBar(0).