<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> 'q time'<br> timestr=subwrd(result, 3)<br> 'draw string 7 7 '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"><<a href="mailto:andy@f5data.com">andy@f5data.com</a>></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't get it to work.<br>I'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'd better draw them by "draw string". The time information can be<br>
obtained by<br>--------<br>'q time' ;* 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>'draw string 'x' 'y' '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 <<a href="mailto:andy@f5data.com">andy@f5data.com</a>>:<br>
> This may be a stupid question. but I can't seem to figure out how to put<br>the<br>> actual model run time stamp on the Grads image.<br>><br>> I know you can do the time that the image was made, but how do I pull<br>
either<br>> the valid time of the forecast, and/or the model run (initialization) time<br>> and plot it on the image?<br>><br>><br>><br>><br>><br>> Andrew Revering<br>><br>> Convective Development, Inc.<br>
><br>> <a href="http://www.convectivedevelopment.com/" target="_blank">http://www.convectivedevelopment.com/</a><br>><br>><br>><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><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>