if/endif use with defined variables

Eduardo Agosta Scarel eduardo.agosta at GMAIL.COM
Fri Apr 2 07:50:23 EDT 2010


Hi you all!

I am trying to use the values obtained for a defined variable within an
if/endif construction, but it appears that the script does not read in fact
every value (which must be compared with a certain threshold).

Any suggestion for that?

I will much appreciate.

Eduardo.


PS: E.g. of what I want to do: to count the numbers of days when the defined
variable is below or over a threshold:

j=1
i=0
while (j < 31)
'set t 27'
'set lat 0'
'set lon 0 360'
'define vmerid=ave(vwnd(t='j'), lat=0, lat=10)'
v='vmerid'
if (vmerd >= 5.0 & vmerid <= 5.0)
   i=i+1
endif
enwhile



-- 

eduardo.agosta at conicet.gov.ar
eduardo_agosta at uca.edu.ar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100402/989e28e5/attachment.html 


More information about the gradsusr mailing list