While loop

Davide Sacchetti davide.sacchetti at ARPAL.ORG
Wed Sep 6 08:00:02 EDT 2006


modify 'set t't -> 'set t 't
Davide

On Wed, 2006-09-06 at 12:44 +0100, Isilda da Cunha Menezes wrote:
> 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
--
Sacchetti Davide
ARPAL UO3 Centro Meteo Idrologico Regione Liguria - Dir. Scientifica
V.le Brigare Partigiane 2 16121 Genova (I)
tel: +39 010 6437535
mail: davide.sacchetti at arpal.org   web: www.meteoliguria.it



More information about the gradsusr mailing list