cf.DomainAncillary.datetime_array¶
-
DomainAncillary.
datetime_array
¶ An independent numpy array of date-time objects.
Only applicable for data with reference time units.
If the calendar has not been set then the CF default calendar will be used and the units will be updated accordingly.
Examples:
>>> f.units 'days since 2000-01-01' >>> print(f.array) [ 0 31 60 91] >>> print(f.datetime_array) [cftime.DatetimeGregorian(2000-01-01 00:00:00) cftime.DatetimeGregorian(2000-02-01 00:00:00) cftime.DatetimeGregorian(2000-03-01 00:00:00) cftime.DatetimeGregorian(2000-04-01 00:00:00)]