[ncl-talk] date question
Yuqiang Zhang
yuqiangzhang.thu at gmail.com
Fri Dec 12 08:58:13 MST 2014
Hi Erik,
What's the format of the yyyy, mm, dd? If they are strings, I will type
"yyyymmdd = yyyy + mm + dd"; if they are integers, I will try "yyyymmdd =
yyyy*10000 + mm*100 + d". Hope this helps!
Regards,
Yuqiang
From: ncl-talk-bounces at ucar.edu [mailto:ncl-talk-bounces at ucar.edu] On Behalf
Of Noble, Erik U. (GISS-611.0)[Science Collaborator]
Sent: Friday, December 12, 2014 10:50 AM
To: ncl-talk at ucar.edu
Subject: [ncl-talk] date question
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 -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141212/aa92bdaa/attachment.html
More information about the ncl-talk
mailing list