cf.Field._FillValue

Field._FillValue

The _FillValue CF property.

A value used to represent missing or undefined data.

Note that this property is primarily for writing data to disk and is independent of the missing data mask. It may, however, get used when unmasking data array elements. See http://cfconventions.org/latest.html for details.

The recommended way of retrieving the missing data value is with the fill_value method.

Examples

>>> f._FillValue = -1.0e30
>>> f._FillValue
-1e+30
>>> del f._FillValue
>>> f.set_property('_FillValue', -1.0e30)
>>> f.get_property('_FillValue')
-1e+30
>>> f.del_property('_FillValue')
-1e30
>>> f.del_property('_FillValue', None)
None