VCS Scripts: Script Command: Loop    


Description

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'.


Assignments

Loop([I(first,last[,increment])]
[,][J(first,last[,increment])]
[,][K(first,last[,increment])]
[,][L(first,last[,increment])]
[,][M(first,last[,increment])]
[,][N(first,last[,increment])]
[,][CGM([file name])])
[,][Raster([file name])]
[,][netCDF([file name])]
[,][HDF([file name])]
[,][DRS([file name])]


Script Examples

Examples of using Loop scripts:

Loop(I(1,12,1),cgm(/home/williams/example.cgm))

Loop(I(1,12,2),cgm(/home/williams/example.ras))

Loop(I(1,12,3),cgm(/home/williams/example.nc))

Loop(I(6,12,4),raster(/home/williams/example.hdf))



Last update January 7, 1997. For further information, contact: Dean N. Williams (vcs@pcmdi.llnl.gov).
This page is maintained by Anna McCravy (mccravy@pcmdi.llnl.gov).
 and LLNL Disclaimers

UCRL-MI-122902