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: String Tables - Deleting Strings and String Tables Next: Real-time Data Access

10.6 String Tables - Incrementing Values in a String

In this exercise, you will define a simple string that displays three images in three consecutive frames, use the REPEAT command to define values for the string, and run the string.

  1. Create a string called DISPLAY that displays images on frames.

    Type: TE DISPLAY "IMGDISP GV4.!1 !2 STA=DCA

    The exclamation point (!) indicates the value will be defined and incremented when you use the REPEAT command. In this example, the dataset position number (!1) and the frame number (!2) will increment.

  2. Repeat the DISPLAY string three times, starting at GV4 dataset position 1 and frame 4, and increase each value by one until dataset position 3 is displayed in frame 6.

    Type: REPEAT DISPLAY 1 TO 3 BY 1 4 BY 1

  3. Set the loop bounds to frames 4 through 6 and loop the frames. Stop looping.

    Type: LS 4-6
    Press: Alt L

  4. Exit McIDAS

    Type: EXIT


Table of contents Previous: String Tables - Deleting Strings and String Tables Next: Real-time Data Access

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community 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