<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Arial">Hi GrADS user,</font><br>
<br>
<font face="Arial">I use GrADS 2.0.2 version.</font><br>
<font face="Arial"><span id="result_box" class="" lang="en"><span
class="hps">I am using the</span> <span class="hps">MM5</span><span>
model output and</span> <span class="hps">I have</span> <span
class="hps"></span></span><span id="result_box" class=""
lang="en"><span class="hps"><span id="result_box" class=""
lang="en"><span class="hps">every 10 minutes </span></span>outputs</span>
<span class="hps">data</span>...</span></font><br>
<font face="Arial"><span id="result_box" class="short_text"
lang="en"><span class="hps">C</span><span class="hps">an</span>
i <span class="hps">save data</span> <span class="hps">every
10 minutes in text file</span><span class="">?</span></span>..
<span id="result_box" class="short_text" lang="en"><span
class="hps">in my</span> <span class="hps">script</span> <span
class="hps">I could only</span> <span class="hps">save</span>
<span class="hps">the hourly data</span></span><span
id="result_box" class="" lang="en"><span class="hps">..</span></span></font><br>
<font face="Arial"><span id="result_box" class="" lang="en"><span
class="hps">I</span> <span class="hps">am using this</span> <span
class="hps">script</span> <span class="hps">to create</span>
<span class="hps">a text file</span> <span class="hps">with the
data</span></span> -></font><br>
<font face="Arial">
</font>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div style="display: inline-block;" id="gt-input-tool">
<div id="itamenu"><font face="Arial"><span
class="ita-kd-inputtools-div"></span></font></div>
</div>
<div id="gt-src-c" class="g-unit">
<div id="gt-src-p"><font face="Arial"><span id="result_box"
class="short_text" lang="en"><span class="hps"></span></span><br>
</font></div>
</div>
<font face="Arial">***************</font><br>
<font face="Arial">***************</font><br>
<font face="Arial">'set lon -100.1829'</font><br>
<font face="Arial">'set lat 54.6518'</font><br>
<font face="Arial">'set lev 0.99199'</font><br>
<br>
<font face="Arial">timeend = 5000</font><br>
<font face="Arial">i = 1</font><br>
<font face="Arial">while(i <= timeend)</font><br>
<font face="Arial">'set t 'i''</font><br>
<font face="Arial">'q time'</font><br>
<font face="Arial">timehr = substr(result, 8, 3)</font><br>
<font face="Arial">timedy = substr(result, 11, 2)</font><br>
<font face="Arial">timemo = substr(result, 13, 3)</font><br>
<font face="Arial">timeyr = substr(result, 16, 4)</font><br>
<br>
<font face="Arial">#velocidad viento</font><br>
<font face="Arial">'tg1=mag(u,v)'</font><br>
<font face="Arial">'d tg1'</font><br>
<font face="Arial">a.nr1 = subwrd(result,4)</font><br>
<br>
<font face="Arial">val = timeyr%"-"%timemo%"-"%timedy"-"%timehr"
"%a.nr1</font><br>
<font face="Arial">rec = write('sequoya_80v.txt',val, append)</font><br>
<font face="Arial">i = i + 1</font><br>
<font face="Arial">endwhile</font><br>
<font face="Arial">*******************</font><br>
<font face="Arial">*******************</font><br>
<br>
<font face="Arial">Thanks</font><br>
<br>
<font face="Arial">Leopoldo ÁLVAREZ</font><br>
<font face="Arial">Tenerife - Canary Islands</font><br>
</body>
</html>