convert yyyymmdd to time values

From: Xi Chang <xi.chang01_at_nyahnyahspammersnyahnyah>
Date: Sat Feb 01 2014 - 14:25:23 MST

Dear NCL members,

What should I do if I want to convert my yyyymmdd date format from a *txt
output to time values? for instance,

time = (/20010101, 20010105, 20060302, 20080101, 20090621/)
time@units = "days since 1800-01-01 00:00:00"

So that I will have:

time = (/17522904, 17522928, 17522952, 17522976, 17523000/)
time@units = "days since 1800-01-01 00:00:00"

the reason is because I need to use the *cd_calendar *function for my purpose.

thank you

Chang

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Feb 1 14:25:35 2014

This archive was generated by hypermail 2.1.8 : Fri Feb 07 2014 - 16:39:11 MST