<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi, Leopoldo — <div>Here is some code to parse the output from ‘q time’</div><div><br></div><div><div>'q time'</div><div>timestring=subwrd(result,3)</div><div>ck=substr(timestring,6,1)</div><div>if (ck='Z')</div><div>* minutes are in the time string</div><div> hh=substr(timestring,1,2)</div><div> mm=substr(timestring,4,2)</div><div> dd=substr(timestring,7,2)</div><div> mon=substr(timestring,9,3)</div><div> yyyy=substr(timestring,12,4)</div><div>else</div><div>* minutes are not in the time string</div><div> hh=substr(timestring,1,2)</div><div> mm=00</div><div> dd=substr(timestring,4,2)</div><div> mon=substr(timestring,6,3)</div><div> yyyy=substr(timestring,9,4)</div><div>endif </div><div>say yyyy' 'mon' 'dd' 'hh' 'mm</div><div><br></div><div><div>On May 23, 2015, at 6:00 AM, Leopoldo Alvarez <<a href="mailto:lap.bolsa@gmail.com">lap.bolsa@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<div bgcolor="#FFFFFF" text="#000000">
<font face="Arial">Hi Jennifer, </font><br>
<br>
<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"> </div>
</div>
<font face="Arial"> </font>
<div id="gt-res-c" class="g-unit">
<div id="gt-res-p">
<div id="gt-res-data">
<div id="gt-res-wrap">
<div id="gt-res-content" class="almost_half_cell">
<div dir="ltr" style="zoom:1">
<div id="tts_button"><font face="Arial"><object type="application/x-shockwave-flash" data="x-msg://ssl.gstatic.com/translate/sound_player2.swf" id="tts" height="18" width="18"></object></font></div>
<font face="Arial"><span id="result_box" class="short_text" lang="en">Thanks
for your answer</span></font></div>
</div>
</div>
</div>
</div>
</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<font face="Arial"><span id="result_box" class="short_text" lang="en"><span class="hps">I think</span> <span class="hps">I</span>
<span class="hps">messed</span><span class="hps">..</span> <span class="hps">now I don´t</span> <span class="hps">work well..</span></span></font><br>
<font face="Arial"><span id="result_box" class="short_text" lang="en">
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
<span id="result_box" class="short_text" lang="en"><span class="hps">Attached my</span> <span class="hps">configuration</span>
<span class="hps">and the result</span></span></span></font><br>
<font face="Arial"><span id="result_box" class="short_text" lang="en"><span class="hps"></span></span></font><br>
<font face="Arial"><span id="result_box" class="short_text" lang="en"><span id="result_box" class="short_text" lang="en"><span class="hps"></span></span>Leopoldo</span></font><br>
<font face="Arial"><span id="result_box" class="short_text" lang="en"><span class="hps"></span></span></font><font face="Arial"><br>
- - - - - - - - - - - - - - - - - - -<br>
- - - - - - - - - - - - - - - - - - -<br>
'open 10M.ctl'<br>
<br>
'set lon -84.926257'<br>
'set lat 10.430741'<br>
<br>
# 0.9900545 -> 80 m<br>
#'set lev 0.99199'<br>
# 0.9888191 -> 90 m<br>
'set lev 0.98818'<br>
<br>
timeend = 20<br>
i = 1<br>
while(i <= timeend)<br>
'set t 'i''<br>
'q time'<br>
timeyr = substr(result, 16, 4)<br>
timemo = substr(result, 13, 3)<br>
timedy = substr(result, 11, 2)<br>
timehr = substr(result, 8, 3)<br>
timemi = substr(result, 8, 5)<br>
<br>
#velocidad viento<br>
'tg1=mag(u,v)'<br>
'd tg1'<br>
a.nr1 = subwrd(result,4)<br>
<br>
val = timeyr%"-"%timemo%"-"%timedy"-"%timehr"-"%timemi" "%a.nr1<br>
rec = write('10M_90v.txt',val, append)<br>
i = i + 1<br>
endwhile</font><br>
<font face="Arial"><font face="Arial">- - - - - - - - - - - - - - -
- - - -<br>
- - - - - - - - - - - - - - - - - - -</font><br>
<br>
</font><br>
<font face="Arial"><font face="Arial">- - - - - - - - - - - - - - -
- - - -<br>
- - - - - - - - - - - - - - - - - - -<br>
</font>2010-JAN-01-00Z-00Z01 9.12851<br>
JAN2-Z01-10-00:-00:10 11.1242<br>
JAN2-Z01-20-00:-00:20 13.8066<br>
JAN2-Z01-30-00:-00:30 15.007<br>
JAN2-Z01-40-00:-00:40 15.7414<br>
JAN2-Z01-50-00:-00:50 16.2283<br>
2010-JAN-01-01Z-01Z01 17.4028<br>
JAN2-Z01-10-01:-01:10 18.1816<br>
JAN2-Z01-20-01:-01:20 19.0074<br>
JAN2-Z01-30-01:-01:30 20.133<br>
JAN2-Z01-40-01:-01:40 20.5452<br>
JAN2-Z01-50-01:-01:50 20.6561<br>
2010-JAN-01-02Z-02Z01 20.4902<br>
JAN2-Z01-10-02:-02:10 19.8622<br>
JAN2-Z01-20-02:-02:20 19.2732<br>
JAN2-Z01-30-02:-02:30 18.8075<br>
JAN2-Z01-40-02:-02:40 18.5281<br>
JAN2-Z01-50-02:-02:50 18.3364<br>
2010-JAN-01-03Z-03Z01 18.2838<br>
JAN2-Z01-10-03:-03:10 18.353</font><br>
<font face="Arial"><font face="Arial">- - - - - - - - - - - - - - -
- - - -<br>
- - - - - - - - - - - - - - - - - - -</font><br>
<br>
<br>
<br>
</font><br>
<div class="moz-cite-prefix">El 22/5/15 a las 17:05, Leopoldo
Alvarez escribió:<br>
</div>
<blockquote cite="mid:555F53C6.6060405@gmail.com" type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<font face="Arial">Hi GrADS user,</font><br>
<div class="moz-forward-container"> <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>
<br>
</div>
<br>
</blockquote>
<br>
</div>
_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams<br>Center for Ocean-Land-Atmosphere Studies (COLA)<br>111 Research Hall, Mail Stop 2B3<br>George Mason University<br>4400 University Drive<br>Fairfax, VA 22030 <br><br></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>