cf.DimensionCoordinate.override_units

DimensionCoordinate.override_units(new_units, i=False)
i : bool, optional
If True then update the dimension coordinate in place. By default a new dimension coordinate is created. In either case, a dimension coordinate is returned.