cf.Data.Units

Data.Units

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

Can be set to any units equivalent to the existing units.

Examples

>>> d = cf.Data([1, 2, 3], units='m')
>>> d.Units
<Units: m>
>>> d.Units = cf.Units('kilmetres')
>>> d.Units
<Units: kilmetres>
>>> d.Units = cf.Units('km')
>>> d.Units
<Units: km>