[gradsusr] extracting seasonal data using the extraction.gs

kombo kai kaikombo at yahoo.com
Tue Apr 9 11:19:36 EDT 2013


Hi grads users 
I have been trying to extract the JJA season olr using the codes below, but when I run the script I got the errror message that
set error invalid operand
operand t 254
operand t 266 e.t.c
Please any one can help this 
'reinit'
'sdfopen c:\fortran1\data2.cdf'
filename='h:\data_predolr\TC4JJAA5_SESAME.txt'
'set gxout print'
'set prnopts %6.1f 5 2'
n=61
while (n <=453)
'set t ' n
'define jun=olr'
'set t' n+1
'define jul=olr'
'set t 'n+2
'define aug=olr'
'define jun1=(jun+jul+aug)/3' 
'd aave(jun1,lon=-65,lon=-50,lat=-38,lat=-25)'
res=sublin(result,2)
rc=write(filename,res)
n=n+12
endwhile
**************************
regards
kaikombo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130409/66b5b8f9/attachment-0003.html 


More information about the gradsusr mailing list