[gradsusr] display the date
saeed bayat
saeedbayat7276 at gmail.com
Wed May 11 10:35:47 EDT 2011
Hi Simon
It will work for your subject, use this script in your script:
res = subwrd(result,3)
basedate = substr(res,4,12)
basetime = substr(res,1,3)
res = subwrd(result,6)
baseday=substr(res,1,3)
It will show the date for you if you enter this command after above script:
'draw title text(whatever you want to write)-['basedate'-'basetime']'
'printim /path/name of your map whatever you want.gif x1200 y1000 white'
regards
Saeed Bayat
M.Sc Student of Climatology
Ferdowsi University of Mashhad(Iran)
saeedbayat7276 at gmail.com
On Wed, May 11, 2011 at 6:03 PM, Simon Kiertscher
<simon.kiertscher at gmx.de>wrote:
> Hi All,
>
> I have a problem regarding the displaying of the date/time.
> When I try to display a single time step, grads displays in the lower
> right corner the current date (e.g. 2011-05-11-14:50)
> When I have a animation (e.g. set t 1 50) it displays me the date of the
> data (e.g. 1950:12:30:10).
>
> What can I do to get the date from the data displayed (like in the
> animation), even when I display only a single picture?
>
> Best Regards,
> Simon
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110511/f7e572cf/attachment-0003.html
More information about the gradsusr
mailing list