[gradsusr] Issues With Calling "T = 1" Dimension Via Q Dims

Perry, Aaron @ LSC Aaron.Perry at lsc.vsc.edu
Sun Dec 15 02:04:10 EST 2013


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.

Ideally, I just want to display the forecast hour next to the date


Onward and Upward,

Aaron Perry
Boston, MA
Mobile: 617-780-4312
________________________________
From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] on behalf of Jeff Duda [jeffduda319 at gmail.com]
Sent: Sunday, December 15, 2013 1:22 AM
To: GrADS Users Forum
Subject: Re: [gradsusr] Issues With Calling "T = 1" Dimension Via Q Dims

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).

Jeff Duda


On Sun, Dec 15, 2013 at 12:09 AM, Perry, Aaron @ LSC <Aaron.Perry at lsc.vsc.edu<mailto:Aaron.Perry at lsc.vsc.edu>> wrote:
Good Morning All,

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.

When querying dims, the following pops up:

Default file number is: 1
X is varying  Lon = 0 to 360  X = 1 to 73
Y is varying  Lat = -90 to 90  Y = 1 to 37
Z is fixed  Lev = 1000 Z = 1
T is fixed  Time = 12Z15DEC2013 T = 1

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:

ftime = sublin(result,5)
fdate1 = subwrd(ftime,6)
fmonth = substr(fdate1,6,3)

I've tried moving over to the right by increasing the "6" in the fdate1 = subwrd(ftime,6) line to 7, 8, 9, etc but, it only displays a space and never catches the "T = 1."

I was wondering if anyone has encountered this problem before and if so, possibly knows of a solution.


Onward and Upward,

Aaron Perry
Boston, MA
Mobile: 617-780-4312

_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr




--
Jeff Duda
Graduate research assistant
University of Oklahoma School of Meteorology
Center for Analysis and Prediction of Storms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20131215/c4d99773/attachment.html 


More information about the gradsusr mailing list