<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">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>