Smooth

Smoothes a SCAN.
Format:
SPECTRA> sm$*$ooth [/s=val1] id1 [id2]

Description:
Smooth originates from GLATT (by P. Gürtler). Id1 selects the SCAN which is smoothed. If id2 is omitted, the name of the new SCAN will be the name of id1 concatenated with "_S".
/nocon$*$firm
If SMOOTH works 'in place' (id1 = id2), it asks for confirmation before is overrides the original data, unless /nocon is supplied.
/S=val1
The smoothing factor. Its default value is 1.
/NP=n_points
The number of points of id2 (3 - 8192, default: number of points of id1).

e.g.:
read/notext bpu1 
create/tag/x=0.8 bpu1 
smooth/s=3 bpu1 temp 
set temp/col=2 
create/tag/x=0.8/y=0.82/string=smoothed temp 
display
Bpu1 is smoothed. The result is named temp. See the figure in section 15.3.73.

Figure 15.10: Example for SMOOTH
Image smooth_example