[ncl-talk] time (integer) array to calendar

Jayant jayantkp2979 at gmail.com
Fri Apr 23 20:23:21 MDT 2021


Hi! I am reading binary files and extracting date from the file name (GFCT
*2019081503*.out) and creating the time dimension:
 tim=new(ntim,integer)
 tim!0         = "time"
 tim at long_name = "time"
 tim at units     = "hours"
 tim&time      = tim
my time dimension is an integer array (yyyymmddhh) :
  2019081503
  2019081506
  2019081509
  ...
  2019093012
Is it possible to convert it to calendar time so as to perform
daily/weekly/monthly/seasonal average? How can it be done?
Please advise.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210423/2d8097ae/attachment-0001.html>


More information about the ncl-talk mailing list