[ncl-talk] date question

Dennis Shea shea at ucar.edu
Fri Dec 12 09:34:49 MST 2014


yyyymmdd = yyyy*10000 + mm*100 + dd

yyyymmddhh = yyyy*1000000 + mm*10000 + dd*100 + hh

On Fri, Dec 12, 2014 at 8:49 AM, Noble, Erik U. (GISS-611.0)[Science
Collaborator] <erik.noble at nasa.gov> wrote:

>
>   Hi. If I have a file that gives me dates broken up into different
> parts, how to I combine them to have an array of single dates (e.g.
> YYYYMMDD)
>
>  a = addfile("ERAI_GBI_dates_timeseries.nc","r")
>
>  yyyy = a->yr
> mm = a->mon
> dd = a->day
> hh = a->hr
>
>  ; how do I combine these to show yyyymmdd?
>
>         Sincerely,
>  - Erik -
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141212/494c8637/attachment.html 


More information about the ncl-talk mailing list