Sha,
If your date is in numeric format, then I think you should be able to use either cd_calendar or cd_convert:
http://www.ncl.ucar.edu/Document/Functions/Contributed/cd_convert.shtml
http://www.ncl.ucar.edu/Document/Functions/Built-in/cd_calendar.shtml
y = (/1995.1,1995.2,1995.3,1995.4,1995.5,1995.6,1995.7,1995.8,1995.9,1996/)
y@units = "years since 0000"
x = cd_calendar(y,3)
print(x)
On Jun 4, 2014, at 11:28 AM, Sha Feng <sfeng@mail.usf.edu> wrote:
> Hi all,
>
> Does anyone know how to convert fractional year (yyyyfrac) format to date and time (yyyymmddhh) using ncl?
>
> Thanks,
> Sha
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jun 06 09:01:29 2014
This archive was generated by hypermail 2.1.8 : Sat Jun 07 2014 - 11:03:12 MDT