cf.Data.Units

Data.Units

The cf.Units object containing the units of the data array.

Deleting this attribute is equivalent to setting it to an undefined units object, so this attribute is guaranteed to always exist.

Examples:
>>> d.Units = cf.Units('m')
>>> d.Units
<CF Units: m>
>>> del d.Units
>>> d.Units
<CF Units: >

Previous topic

cf.Data.unique

Next topic

cf.Data.varray

This Page