While loop
Isilda da Cunha Menezes
isilda at UEVORA.PT
Wed Sep 6 07:44:49 EDT 2006
Dear all
We are trying to improve a while loop to have some diary temperature
picture for diferent times (exp for t=1, t=2, ....), but when we run the
script above, we have just the first picture.
'reinit'
'open cv1_g1.ctl'
'set mpdset mres'
'set map 1 1 4'
'set display grey white'
'c'
'set display color'
'set grid off'
'set gxout shaded'
*'DATE=!`date +%Y%m%d`'
'set csmooth on'
'set vpage off'
*'set lat...'
*'set lon...'
'set z 1'
t=1
while (t<24)
'set t't
'q time'
res=substr(result,8,12)
title=sublin(res,1)
'enable print temp-'%title'.gmf'
'set grads off'
'set ccols 4 3 7 8 2 6 15'
'set clevs 0 4 8 12 16 20 24'
'd tempc'
'set clab auto'
*'run basemap O 5 1 M'
'run cbarn.gs'
'draw title Temperatura-'%title
'print'
'disable print'
'!./gxgif -r -i temp-'%title'.gmf'
'!rm temp-'%title'.gmf'
c
t=t+1
endwhile
'quit'
Please help us to find the problem
More information about the gradsusr
mailing list