INC|DEC <spectrum-name>(<x-channel> [,<y-channel> [,<z-channel>]])
SET <spectrum-name>(<x-channel> [,<y-channel> [,<z-channel>]]) = <expression>
where a channel is defined as one of the following:
<arithmetic expression>
<parameter-list>
[<$word>=]<group-parameter-list>
eg.
... increment the channels given by each E2 word for parameter-list GELIST. Channels given by the ith element of the first list and the ith element of the second list are not incremented, ie. the same gamma-ray is not incremented with itself.INC GMAT(GELIST.E2,GELIST.E2)
... increment the channel GE[1].E1 of spectrum GS1, where E1 is an item associated with the group GE[1].INC GS1(GE[1].E1)
... decrement channel GAM1 of spectrum GAMSPC.DEC GAMSPC((GAM1+100)/2)
... assign the data word clock.w1 to channel 10 of spectrum TCHECK.SET TCHECK(10) = clock.w1
... increment channel given by the word WORDX (x-coordinate) and all valid words in word-parameter-listINC MAT2D(WORDX,LISTX)
LISTX
(y-coordinate) of 2D spectrum MAT2D
.
... increment channel given by all valid E2 words in group-parameter-list GELIST of spectrum ALL_GES.INC ALL_GES(GELIST.E2)
... increment the symmetrised cube GFEX3 at the location given by GAMA, GAMB and GAMC.INC GFEX3(GAMA,GAMB,GAMC)
Any spectrum update attempted by a command in this sort package which falls outside the defined spectrum dimensions will be safely ignored.