cf.AuxiliaryCoordinate.unique

AuxiliaryCoordinate.unique

The unique elements of the array.

Returns a one dimensional cf.Data object.

Examples

>>> f.array
[[4, 2, 1],
 [1, 2, 3]]
>>> print f.unique.array
[1, 2, 3, 4]
>>> f[1, -1] = cf.masked
>>> print f.unique.array
[1, 2, 4]

Previous topic

cf.AuxiliaryCoordinate.T

Next topic

cf.AuxiliaryCoordinate.Units

This Page