cf.AuxiliaryCoordinate.override_units¶

AuxiliaryCoordinate.
override_units
(*args, **kwargs)[source]¶ Override the units.
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. Therefore, this method should only be used when it is known that the data array values are correct but the units have incorrectly encoded.
Not to be confused with setting the
units
orUnits
attribute to units which are equivalent to the original units.See also
 Parameters
 Returns
TODO
Examples:
>>> f.Units <Units: hPa> >>> f.datum(0) 100000.0 >>> f.override_units('km') >>> f.Units <Units: km> >>> f.datum(0) 100000.0 >>> f.override_units(Units('watts')) >>> f.Units <Units: watts> >>> f.datum(0) 100000.0