Replacing values by GrADS expression
Wolfgang Linder
linder at METEOTEST.CH
Mon Feb 7 14:21:22 EST 2005
Hello,
I use this to discriminate between rain and snow.
....
'onlysnow=maskout(precip,273-t2m)'
'onlyrain=maskout(precip,t2m-273)'
'rain=const(onlyrain,0,-u)'
'snow=const(onlysnow,0,-u)'
....
and in your case I think the following might work::
**** humidity if T < 10, Temperature if T > 10 ****
'variable1=maskout(t2m,283-t2m)'
'variable2=maskout(rh,t2m-283)'
'var1=const(variable1,0,-u)'
'var2=const(variable2,0,-u)'
'total=var1+var2'
Best regards
Wolfgang Linder
------------------------------------------------------------
Wolfgang Linder Tel:(+41)(0)31 307 26 26
METEOTEST Fax:(+41)(0)31 307 26 10
Fabrikstrasse 14 e-mail: linder at meteotest.ch
CH-3012 Bern
Switzerland
------------------------------------------------------------
More information about the gradsusr
mailing list