<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Thanks for the quick reply! I'm going to give this a try tomorrow and then I'll let you know how it goes, either way.
<br>
<br>
Ideally, I just want to display the forecast hour next to the date<br>
<div><br>
<br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font size="3"><font face="Arial"><font face="Tahoma" size="2"><font size="2">Onward and Upward,<br>
<br>
</font>Aaron Perry<br>
</font><font size="3"><font size="3"><font face="Tahoma" size="2">Boston, MA<br>
Mobile: 617-780-4312</font><br>
</font></font></font></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF352239"><font color="#000000" face="Tahoma" size="2"><b>From:</b> gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] on behalf of Jeff Duda [jeffduda319@gmail.com]<br>
<b>Sent:</b> Sunday, December 15, 2013 1:22 AM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] Issues With Calling "T = 1" Dimension Via Q Dims<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">subwrd considers only consecutive characters as a string. Thus the phrase "T = 1" is really considered to be three separate strings as far as subwrd is concerned. My advice is to manually set the string "T = " in your script, then just pull
the final value using subwrd(ftime,9).
<div><br>
</div>
<div>Jeff Duda</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sun, Dec 15, 2013 at 12:09 AM, Perry, Aaron @ LSC <span dir="ltr">
<<a href="mailto:Aaron.Perry@lsc.vsc.edu" target="_blank">Aaron.Perry@lsc.vsc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">Good Morning All,<br>
<br>
I'm currently having a bit of an issue where I'm trying to call the "T = 1" section that pops up when querying "Dims." I'm pulling NOMADS GFS data via the sdfopen command.<br>
<br>
When querying dims, the following pops up:<br>
<br>
Default file number is: 1<br>
X is varying Lon = 0 to 360 X = 1 to 73<br>
Y is varying Lat = -90 to 90 Y = 1 to 37<br>
Z is fixed Lev = 1000 Z = 1<br>
T is fixed Time = <span style="background-color:rgb(255,255,0)">12Z15DEC2013</span>
<span style="background-color:rgb(255,255,0)">T = 1</span><br>
<br>
What I'm trying to do is pull the "T = 1" to be displayed on a plot. Currently, I'm able to extract the date portion of Line 5 with:<br>
<br>
ftime = sublin(result,5)<br>
fdate1 = subwrd(ftime,6)<br>
fmonth = substr(<span style="background-color:rgb(255,255,0)">fdate1</span>,6,3)<br>
<br>
I've tried moving over to the right by increasing the "6" in the fdate1 = subwrd(ftime,<span style="background-color:rgb(255,255,0)">6</span>) line to 7, 8, 9, etc but, it only displays a space and never catches the "T = 1."
<br>
<br>
I was wondering if anyone has encountered this problem before and if so, possibly knows of a solution.<br>
<br>
<br>
Onward and Upward,<br>
<div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font size="3"><font face="Arial"><font face="Tahoma"><font><br>
</font>Aaron Perry<br>
</font><font size="3"><font size="3"><font face="Tahoma">Boston, MA<br>
Mobile: 617-780-4312</font><br>
</font></font></font></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Jeff Duda<br>
Graduate research assistant<br>
University of Oklahoma School of Meteorology<br>
Center for Analysis and Prediction of Storms<br>
</div>
</div>
</div>
</div>
</body>
</html>