cf.Data.override_calendar

Data.override_calendar(calendar, i=False)[source]

Override the data array calendar.

Not to be confused with setting d.Units.calendar. This is different because in this case the new units 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: