[gradsusr] Time Stamp

Andrew Revering andy at f5data.com
Tue Jul 20 15:34:01 EDT 2010


I appreciate the help with doing this... but I can't get it to work.
I'm trying to do this through scripts and perhaps my syntax is wrong, I
dunno.

If I do it manually and do a q time I see a time displayed, but when I do it
through scripting it says time is not a valid variable.

Does anyone have a snippet of code directly from a script that pulls the
models time out of it?



-----Original Message-----
From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org]
On Behalf Of MY
Sent: Saturday, July 10, 2010 1:49 AM
To: GrADS Users Forum
Subject: Re: [gradsusr] Time Stamp

Hi, Andrew,

You'd better draw them by "draw string". The time information can be
obtained by
--------
'q time'      ;*  returns:  Time = 00z01jul2010 to 00z01jul2010 Thu to Thu
timstr=subwrd(result, 3)
--------

you can then draw the string by
--------
'draw string 'x' 'y' 'timestr
--------
where the x and y are the location in virtual page. Please note there
is a blank between the quotation marks.

Good luck!

MY

2010/7/10 Andrew Revering <andy at f5data.com>:
> This may be a stupid question. but I can't seem to figure out how to put
the
> actual model run time stamp on the Grads image.
>
> I know you can do the time that the image was made, but how do I pull
either
> the valid time of the forecast, and/or the model run (initialization) time
> and plot it on the image?
>
>
>
>
>
> Andrew Revering
>
> Convective Development, Inc.
>
> http://www.convectivedevelopment.com/
>
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>



-- 
++++++++++++++++++++++++++++++++++++++++++++++++++++
YING, Ming
Shanghai Typhoon Institute of China Meteorological Administration
166 Puxi Road, Xuhui District, Shanghai, 200030
PR China
++++++++++++++++++++++++++++++++++++++++++++++++++++

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




More information about the gradsusr mailing list