encode_units¶
- encode_units(units, /)[source]¶
Convert
pint.Unit
units to an unambiguous unit string. This is used withdequantify
to encode units in thexarray.DataArray
attributes.
Convert pint.Unit
units to an unambiguous unit string. This is used with
dequantify
to encode units in the
xarray.DataArray
attributes.