[gradsusr] Save data every 10 minutes on a text file
Leopoldo Alvarez
lap.bolsa at gmail.com
Fri May 22 12:05:26 EDT 2015
Hi GrADS user,
I use GrADS 2.0.2 version.
I am using the MM5model output and I have every 10 minutes outputs data...
Can i save data every 10 minutes in text file?.. in my script I could
only save the hourly data..
I am using this script to create a text file with the data ->
***************
***************
'set lon -100.1829'
'set lat 54.6518'
'set lev 0.99199'
timeend = 5000
i = 1
while(i <= timeend)
'set t 'i''
'q time'
timehr = substr(result, 8, 3)
timedy = substr(result, 11, 2)
timemo = substr(result, 13, 3)
timeyr = substr(result, 16, 4)
#velocidad viento
'tg1=mag(u,v)'
'd tg1'
a.nr1 = subwrd(result,4)
val = timeyr%"-"%timemo%"-"%timedy"-"%timehr" "%a.nr1
rec = write('sequoya_80v.txt',val, append)
i = i + 1
endwhile
*******************
*******************
Thanks,
Leopoldo ÁLVAREZ
Tenerife - Canary Islands
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150522/8af8bc64/attachment.html
More information about the gradsusr
mailing list