<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I appreciate the help everyone is giving me… I have more
issues though.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Ok, I use the code and it displays the time… but every
file says 22z on the 30th. I have no idea where that time is coming from, and
why each forecast hour shows the same time. The model ran at 06z and finished
around 14z.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Let me give some background… I'm running my own WRF, and I
have 21 forecast hours that I'm creating graphics from.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I want to get either the model run (06z) or the valid time for
that forecast hour. Is that not in the data file? What is q time actually
giving me, because 22z on every file is not making sense to me.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks in advance,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Andy<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
gradsusr-bounces@gradsusr.org [mailto:gradsusr-bounces@gradsusr.org] <b>On
Behalf Of </b>Amit Misra<br>
<b>Sent:</b> Tuesday, July 20, 2010 11:57 PM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] Time Stamp<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal>Dear Andrew,<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> I have used the segment suggested by Ming Ying in
verbatim, and it does work. Yes, I have embedded it in my script.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> 'q time'<br>
timestr=subwrd(result, 3)<br>
'draw string 7 7 'timestr<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>The message regarding time being not a valid variable is
sorted once you set it the usual way. eg:<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>set t 1<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>etc before the above segment.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>All the best, and thanks to Ming.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>Amit Misra<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>Indian Institute of Technology<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>Kanpur<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>India<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'>======================<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>On Tue, Jul 20, 2010 at 12:34 PM, Andrew Revering <<a
href="mailto:andy@f5data.com">andy@f5data.com</a>> wrote:<o:p></o:p></p>
<p class=MsoNormal>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><o:p></o:p></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>