<div dir="ltr">Once you've set timestr = subwrd(result,3), don't use result in the argument for the subsequent substring parsing. You're grabbing from the wrong string at that point.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 27, 2017 at 6:59 AM, <span dir="ltr"><<a href="mailto:jason@solargrafix.com" target="_blank">jason@solargrafix.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div class="m_-5355487217785130992Section1">
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial">Hello, I am having some difficulties formatting the
time stamp for my outputted HRRR model images. Here is the code I use for
the time stamp:<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"> 'q time'<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"> timestr=subwrd(result, 3)<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"> weekday1=subwrd(result,6)<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"> day=substr(result, 11, 9)<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"> hr=substr(result, 7, 20)<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"> h=substr(result, 8, 3)<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"> m=substr(result, 13, 3)<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"> d=substr(result, 11, 2)<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"> y=substr(result, 16, 4)<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"> 'draw string 7.8 0.3 'h' 'weekday1' 'm' 'd', 'y<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial">But the output shows up like this on my HRRR images: 02:
Tue z28 59, FEB2<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial">Any assistance would be appreciated.<u></u><u></u></span></font></p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Jeff Duda<br>Post-doctoral research fellow<br>University of Oklahoma School of Meteorology<br></div></div></div></div></div>
</div>