Animation
display a variable. grads
will return an animation sequence. By default, the animation
dimension is time, but you may specify a different dimension to
animate by using the following command:
set loopdim x|y|z|t
If you wish to animate a variable with fewer than three varying dimensions (i.e., animate a line graph), you can control animation by entering:
set looping on|off
Remember to set looping
off when you are done animating, or you
will get a surprise when you display your next expression!
When you issue a display command after turning on double buffering,
the image is drawn to the backgound buffer. Then you issue the swap command, and grads swaps the background and foreground buffers so you can
see what you've displayed. swap works like clear in that it
resets many graphics options.
Here is a sample script demonstrating how to use double buffering:
'open model.ctl''set dbuff on''set gxout shaded't = 1 while (t <= 5)'draw title Temperature''set t 't 'd t' 'cbarn'endwhile'swap't = t + 1
You may also control the speed of the animation by inserting a q pos following the swap command -- then each
click of the mouse would move to the next time step.


ave
HDF View Version 3.2.0 Free Download 2022
Download Software For the Linux Grads Version 2.0.1 -2.0.2