[gradsusr] IF statement problem

AMS EmsiWx Bytča emsiwx at pocasie-bytca.sk
Thu Feb 15 18:45:47 EST 2018


Dear GrADS users,


I have been on this half a day, but still no success.

Part of my script:

'define oblc = TCDCclm'

if (oblc<10)
obla='J'
endif
if (oblc>=10 & TCDCclm<30)
obla='SJ'
endif
if (oblc>=30 & TCDCclm<60)
obla='P'
endif
if (oblc>=60 & TCDCclm<90)
obla='O'
endif
if (oblc>=90)
obla='Z'
endif

I want to get obla string based on the total cloud cover, but somehow 
the conditions dont work. I always get the last obla='Z' eventhough the 
TCDCclm is 34%

Could you please guide me on the right track?


Thank you in advance for your replies.


Marian



More information about the gradsusr mailing list