VCS Scripts: Script Command: Loop    


The Loop command aids in making images of temporal sequences of variables by looping over indices (I,J,K,L,M,N). The effect is as if the following pseudo code were executed:

Only those indices needed to create the desired effect and only the output command that is desired, if any, should be included. The increments di, dj, etc. need not be supplied if they are +1 or -1. The sign of the increment will be set according to the relative sizes of i1 and i2, j1 and j2, etc.; just the size of the increment is retained from the user input. Commas only need be included between successive arguments.

It is, of course, necessary that the single index or indices that are looped over be used in an array data attribute that will have an effect on an active display table entry; otherwise, the loop will have no effect. Note, as it is automatically assumed that the output files will be in `append' mode, the Raster, CGM, netCDF, HDF, and DRS commands need not specify the output mode as `append'.


[,][CGM([file name])])
[,][Raster([file name])]
[,][netCDF([file name])]
[,][HDF([file name])]
[,][DRS([file name])]

Script Examples

Examples of using Loop scripts:





Last update January 7, 1997. For further information, contact: Dean N. Williams (
This page is maintained by Anna McCravy (
 and LLNL Disclaimers