cf.Data.hardmask

Data.hardmask

Whether the mask is hard (True) or soft (False).

When the mask is hard, masked entries of the data array can not be unmasked by assignment, but unmasked entries may still be masked.

By default, the mask is hard.

Examples

>>> d.hardmask = False
>>> d.hardmask
False
>>> d.hardmask = True
>>> d.hardmask
True

Previous topic

cf.Data.dtype

Next topic

cf.Data.ismasked

This Page