cf.Data.override_calendar¶
-
Data.
override_calendar
(calendar, i=False)[source]¶ Override the calendar of the data array elements.
Not to be confused with using the
change_calendar
method or setting thed.Units.calendar
.override_calendar
is different because the new calendar need not be equivalent to the original ones and the data array elements will not be changed to reflect the new units.Parameters: - calendar : str
The new calendar.
- i : bool, optional
If True then update the data array in place. By default a new data array is created.
Returns: out: cf.Data
Examples: