cf.Coordinate.unique

Coordinate.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.Coordinate.T

Next topic

cf.Coordinate.Units

This Page