<div>Dear Andrew,</div>
<div> </div>
<div>  I have used the segment suggested by Ming Ying in verbatim, and it does work. Yes, I have embedded it in my script.</div>
<div> </div>
<div>  &#39;q time&#39;<br>    timestr=subwrd(result, 3)<br>   &#39;draw string 7 7 &#39;timestr<br></div>
<div> </div>
<div>The message regarding time being not a valid variable is sorted once you set it the usual way. eg:</div>
<div> </div>
<div>set t 1</div>
<div>etc before the above segment.</div>
<div> </div>
<div> </div>
<div>All the best, and thanks to Ming.</div>
<div> </div>
<div>Amit Misra</div>
<div>Indian Institute of Technology</div>
<div>Kanpur</div>
<div>India</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>======================<br><br></div>
<div class="gmail_quote">On Tue, Jul 20, 2010 at 12:34 PM, Andrew Revering <span dir="ltr">&lt;<a href="mailto:andy@f5data.com">andy@f5data.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">I appreciate the help with doing this... but I can&#39;t get it to work.<br>I&#39;m trying to do this through scripts and perhaps my syntax is wrong, I<br>
dunno.<br><br>If I do it manually and do a q time I see a time displayed, but when I do it<br>through scripting it says time is not a valid variable.<br><br>Does anyone have a snippet of code directly from a script that pulls the<br>
models time out of it?<br><br><br><br>-----Original Message-----<br>From: <a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>]<br>
On Behalf Of MY<br>Sent: Saturday, July 10, 2010 1:49 AM<br>To: GrADS Users Forum<br>Subject: Re: [gradsusr] Time Stamp<br><br>Hi, Andrew,<br><br>You&#39;d better draw them by &quot;draw string&quot;. The time information can be<br>
obtained by<br>--------<br>&#39;q time&#39;      ;*  returns:  Time = 00z01jul2010 to 00z01jul2010 Thu to Thu<br>timstr=subwrd(result, 3)<br>--------<br><br>you can then draw the string by<br>--------<br>&#39;draw string &#39;x&#39; &#39;y&#39; &#39;timestr<br>
--------<br>where the x and y are the location in virtual page. Please note there<br>is a blank between the quotation marks.<br><br>Good luck!<br><br>MY<br><br>2010/7/10 Andrew Revering &lt;<a href="mailto:andy@f5data.com">andy@f5data.com</a>&gt;:<br>
&gt; This may be a stupid question. but I can&#39;t seem to figure out how to put<br>the<br>&gt; actual model run time stamp on the Grads image.<br>&gt;<br>&gt; I know you can do the time that the image was made, but how do I pull<br>
either<br>&gt; the valid time of the forecast, and/or the model run (initialization) time<br>&gt; and plot it on the image?<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; Andrew Revering<br>&gt;<br>&gt; Convective Development, Inc.<br>
&gt;<br>&gt; <a href="http://www.convectivedevelopment.com/" target="_blank">http://www.convectivedevelopment.com/</a><br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; gradsusr mailing list<br>
&gt; <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>&gt;<br>&gt;<br><br>
<br><br>--<br>++++++++++++++++++++++++++++++++++++++++++++++++++++<br>YING, Ming<br>Shanghai Typhoon Institute of China Meteorological Administration<br>166 Puxi Road, Xuhui District, Shanghai, 200030<br>PR China<br>++++++++++++++++++++++++++++++++++++++++++++++++++++<br>
<br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br>