Add multiple files with different time units.

From: Ping Huang <ph0007_at_nyahnyahspammersnyahnyah>
Date: Tue Jul 17 2012 - 00:51:10 MDT

Dear all,

As we know, "addfiles" can be used to add multiple files with cat mode.
When the data are read using inFile[:], the value of time coordinate in all files are read directly but the time unit of the first file is used.
There is no problem when the time units are same in all files. But when the time units are different in these files, it would be wrong.
For example, in some cmip5 model output, one variable from 1850-2005 are cut into three files.
The time unit in the first file is "Since 1850......" and the value of time coordinate are "15, 45, 75...".
Similarly, in the second file the time unit has changed to "Since 1900....", but the value of time coordinate still are "15, 45, 75".
Thus, when these files are read using addfiles, the time unit of first files can't be treated as the time units of all time. It does not match the value of time coordinate in the other files.
How to handle this kind of files?

Thanks

Ping

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jul 17 00:51:34 2012

This archive was generated by hypermail 2.1.8 : Wed Jul 18 2012 - 14:33:00 MDT