[ncl-talk] date question

Noble, Erik U. (GISS-611.0)[Science Collaborator] erik.noble at nasa.gov
Fri Dec 12 09:48:34 MST 2014


Thank you. I appreciate your time. Usually, these date values are float values.

On Dec 12, 2014, at 11:34 AM, Dennis Shea <shea at ucar.edu<mailto:shea at ucar.edu>> wrote:

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<mailto: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/62934cf8/attachment.html 


More information about the ncl-talk mailing list