*To execute this script, enter grads and at grads command line type 'run animation.gs' *This script will give an animation of sfc temperature *that has been slowed down for easier viewing *Because this uses grads scripting language, all typical grads commands *must be enclosed by single quotes 'sdfopen /grove3/iesuw/ccm1/CCM1-CNTROLPI-SEAE2025.nc' 'enable print sfcwind' 'set grid off' 'set lon -180 180' *loop through all times *it = counter it=1 *set dbuff on *Sets double buffer mode on or off. This allows animation to be *controlled from a script. The clear command also sets double *buffer mode off. 'set dbuff on' *while loop goes through the five seasons in the file *will display each time period while (it <=5) 'set t 'it 'set grads off' 'display ts' 'draw title CNTROLPI SFC TEMP SEASON #' it '' 'print' *need to swap the buffer after you display something 'swap' *sleep command pauses the animation so it goes more slowly *number at end of command is number of seconds to sleep *in this case, sleeps 1 second '!sleep 1' *increment the counter it=it+1 endwhile