| ENDDO | [End of DO loop (Scripting operation)] |
| LB | [Label for jump operation or end of DO-loop (Scripting operation)] |
Where:
1. <REG> is a loop index variable where the value of the index is
accumulated. (SPIDER still accepts an earlier syntax
where <REG> was a single letter (a...z or A..Z) which
denotes the loop index).
2. <LOWER> is a integer constant that specifies the lower bound of
the loop index.
3. <UPPER> is a integer constant that specifies the upper bound of
the loop index.
4. <INCREMENT> is an optional integer constant that
specifies an incremental value that is added to the loop index
with each cycle of the loop. Default value for
<INCREMENT> is 1.
EXAMPLE:
In the above example, DO will repeat any operations (~~~~~) with the loop index variable [imgnum] varying from 5 to 17.
Nesting of DO loops is allowed. For example:
In the case of operations requiring a pair of numbers (e.g., shift coordinates), one pair has to be provided for each run of the DO-loop. However, if the same floating point number or pair of numbers should be used for each run of the DO-loop, this may be specified by using a single number (or pair of numbers) enclosed in parentheses. Example:
In this case, the shift parameter values 15,8 are applied to each image, starting with ALL005 and ending with ALL009.
NOTES
© Copyright Notice / Enquiries: spider@wadsworth.org