cf.DimensionCoordinate.binary_mask

DimensionCoordinate.binary_mask

A binary (0 and 1) missing data mask of the data array.

The binary mask’s data comprises dimensionless 32-bit integers that are 0 where the data has missing values and 1 otherwise.

Examples

>>> print(f.mask.array)
[[ True  False  True False]]
>>> b = f.binary_mask()
>>> print(b.array)
[[0 1 0 1]]