cf.Data.override_calendar

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

Override the data array units.

Not to be confused with setting the Units attribute to units which are equivalent to the original units. 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

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

Previous topic

cf.Data.outerproduct

Next topic

cf.Data.override_units

This Page