[gradsusr] A problem in calculating average relative humidity in merra

avi kojokro kojokroavi at gmail.com
Fri Jul 19 05:51:43 EDT 2013


I'm trying to calculate a monthly average of relative humidity, but the
answer of Grads unreasonable.
Is the script right? I attach it.
I am also attaching a screenshot of Grads answer.

The Script:


'reinit'
'c'
'set display color white'
'c'
'sdfopen http://goldsmr3.sci.gsfc.nasa.gov:80/dods/MATMCPCLD'
'set lev 1000'
'set lat 32.0'
'set lon 35.0'
yr=1979
tt=''
while(yr<=2013)
'set time 1MAY'yr
'q time'
say ' 'result
*'set gxout print'
'd rh'
tt1=subwrd(result,4)
tt=tt' 'tt1
say ' 'result
yr=yr+1
endwhile
say 'apr (1979-2013) 850_hgt [m] : 'tt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130719/96652a3f/attachment-0003.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.png
Type: image/png
Size: 71718 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20130719/96652a3f/attachment-0003.png 


More information about the gradsusr mailing list