Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 
Table of contents Previous: REDIRECT Next: ROUTE

REPEAT

Repeats a McIDAS command.


Format

REPEAT string start TO end BY inc start BY inc
. . start
BY inc [keyword]


Parameters

string

string name containing the commands to run; 1 to 12 characters; any string beginning with these characters is run

start

starting parameter value (default=0)

end

ending parameter value (default=0)

inc

value to increment the parameter with each repetition (default=1)

TO

mandatory parameter indicating the range between start and end

BY

mandatory parameter indicating the increment between start and end


Keyword

MAXN=

maximum number of commands to run (default=200)


Remarks

Before running REPEAT, set up your string using ! number for each parameter to be incremented; number must begin at 1 and increment by 1. An exclamation point (!) followed by an integer in a string will increment the parameter on each run. Parameters may be decremented using a minus sign (–).


Examples

If the string named LOAD contains the entry "IMGDISP A.!1 !2", then entering the following command, displays image A.1 in frame 3, A.2 in frame 5, A.3 in frame 7, and A.4 in frame 9.

REPEAT LOAD 1 TO 4 BY 1 3 BY 2


Table of contents Previous: REDIRECT Next: ROUTE
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690