cf.Field.hardmask

Field.hardmask

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

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

By default, the mask is hard.

Examples

>>> f.hardmask = False
>>> f.hardmask
False

See also

setdata, subspace

Previous topic

cf.Field.dtype

Next topic

cf.Field.isscalar

This Page