cf.Data.binary_mask¶

Data.
binary_mask
¶ A binary (0 and 1) mask of the data array.
The binary mask’s data array comprises dimensionless 8bit integers and has 0 where the data array has missing data and 1 otherwise.
See also
 Returns
Data
The binary mask.
Examples:
>>> print(d.mask.array) [[ True False True False]] >>> b = d.binary_mask.array >>> print(b) [[0 1 0 1]]