[gradsusr] time format on HRRR images

Jeff Duda jeffduda319 at gmail.com
Mon Feb 27 12:26:02 EST 2017


Once you've set timestr = subwrd(result,3), don't use result in the
argument for the subsequent substring parsing. You're grabbing from the
wrong string at that point.

On Mon, Feb 27, 2017 at 6:59 AM, <jason at solargrafix.com> wrote:

> Hello,  I am having some difficulties formatting the time stamp for my
> outputted HRRR model images.  Here is the code I use for the time stamp:
>
>
>
>   'q time'
>
>     timestr=subwrd(result, 3)
>
>     weekday1=subwrd(result,6)
>
>     day=substr(result, 11, 9)
>
>     hr=substr(result, 7, 20)
>
>     h=substr(result, 8, 3)
>
>     m=substr(result, 13, 3)
>
>     d=substr(result, 11, 2)
>
>     y=substr(result, 16, 4)
>
>    'draw string 7.8 0.3 'h' 'weekday1' 'm' 'd', 'y
>
>
>
> But the output shows up like this on my HRRR images:   02: Tue z28 59, FEB2
>
>
>
> Any assistance would be appreciated.
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 
Jeff Duda
Post-doctoral research fellow
University of Oklahoma School of Meteorology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170227/90af274e/attachment.html 


More information about the gradsusr mailing list