cf.Data.set_fill_value

Data.set_fill_value(value)[source]

Set the missing data value.

See also

del_fill_value, get_fill_vlaue

Parameters:
value: scalar

The new fill value.

Returns:

None

Examples:

>>> f.set_fill_value(-9999)
>>> f.get_fill_value()
-9999
>>> print(f.del_fill_value())
-9999
>>> f.get_fill_value()
ValueError: Can't get non-existent fill value
>>> f.get_fill_value(10**10)
10000000000
>>> print(f.get_fill_value(None))
None
>>> f.set_fill_value(None)
>>> print(f.get_fill_value())
None