Combin

Combines data points.
Format:
SPECTRA> comb$*$in/nb$*$in=n id1 [id2]

Description:
The points of id1 are divided into groups of n points. SPECTRA averages the x- and y-values within these groups and creates a new SCAN which contains these averages. The new SCAN has np/n points (if np is the number of points of id1). The result is copied to id2 or id1 is overwritten.

Format:
SPECTRA> comb$*$in/startcb=val1 /stopcb=val2 /dist=val3 id1 [id2]

Description:
Creates a binning with the first x-value starting at startcb + 0.5dist. The y-values are averaged.

e.g.:
SPECTRA> combin /startcb=5000/stopcb=10000/dist=100 bpu1 temp

The qualifier /n_bin, used with a set command, has a similar effect as the combin command. It produces the same graphical output without actually changing the data.