Showing posts with label GrADS. Show all posts
Showing posts with label GrADS. Show all posts

Tuesday, February 2, 2010

Another GrADS probs..

huh...i've came across this prob before but since it was a few weeks ago (and i was in rushing, ) i did not found what alteration i did. but then, i just found the conflict. felt so silly..hahaha..

after finish doing gs file for 5 day average, and output the DAT file and read it with CTL file, this GS file created to print the single value in text file..

*************************************************************************************
* untuk print index into text file


'reinit'
'open f:\ncep\scripts\work\slppentad\pentad_shi.ctl'


pen=1

while(pen<=2847)
'set t 'pen (forgot to put this here,before!!! argh!!)
'set x 1 144'
'define av'pen '=aave(slpp,lon=80,lon=120,lat=40,lat=60)'
pen=pen+1

endwhile


pen=1
while(pen<=2847)

'd av'pen
res=subwrd(result,4)
ret=write('f:\ncep\scripts\work\siberianhighindex.txt',res)
pen=pen+1
endwhile

*************************************************************************************

me: too much things to think, i guess??