Cut/Keep

Removes or copies part of a SCAN. Cut creates a SCAN containing those points of id1 which are outside the region between the markers.
Format:
SPECTRA> cut mar$*$ker id [sname]
Format:
SPECTRA> ke$*$ep[/ze$*$ro] mar$*$ker id [sname]

Description:
These commands work only, if two markers have been set before. Markers can be set by the cursor command or explicitly by the set marker ... command. The SCAN sname contains those points of id that are outside/inside the marked region. The marked points are not/also moved to sname. IF the parameter sname is omitted, SPECTRA creates a SCAN named id concatenated with ”_C”/”_K”. /zero Sname contains as many points as id. The y-values outside the marked region are set to 0. This qualifier may be attached to the verb keep only.

e.g.:
SPECTRA> set marker 30 70
SPECTRA> cut marker bpu1 tempc
SPECTRA> keep marker bpu1 tempk
The SCAN tempc contains 181 points, tempk 41 points. Both add up to 222, the length of bpu1.

Format:
SPECTRA> cut x_i$*$nterval [/x_mi$*$n=val1][/x_ma$*$x=val2] id [sname]
Format:
SPECTRA> ke$*$ep x_i$*$nterval[/x_mi$*$n=val1][/x_ma$*$x=val2] id [sname]

Description:
The SCAN sname contains those points of id that are outside/inside the selected region. The qualifiers /x_min and /x_max can be replaced by /lo$*$w and /hi$*$gh. In case /x_min or /x_max is not specified, the region is extended to the corresponding SCAN limit. If the parameter sname is omitted, SPECTRA creates a SCAN named id concatenated with ”_C”/”_K”.

Caution: These commands set two markers. If markers have been defined before, they are overwritten.

e.g.:
SPECTRA> keep x_interval /low=10000/high=20000 bpu1 temp
The SCAN temp contains those points of bpu1 which have x-values between 10000 and 20000.