cf.DomainAncillary.override_calendar

DomainAncillary.override_calendar(*args, **kwargs)[source]

Override the calendar of date-time units.

The new calendar need not be equivalent to the original one and the data array elements will not be changed to reflect the new units. Therefore, this method should only be used when it is known that the data array values are correct but the calendar has been incorrectly encoded.

Not to be confused with setting the calendar or Units attributes to a calendar which is equivalent to the original calendar

Parameters
calendar: str

The new calendar.

inplace: bool, optional

If True then do the operation in-place and return None.

i: deprecated at version 3.0.0

Use the inplace parameter instead.

Returns

TODO

Examples

TODO

>>> g = f.override_calendar('noleap')