raster_tools.Raster.replace_null#

Raster.replace_null(value)[source]#

Replaces null values with value.

Parameters

value (scalar) – The new value to replace null values with.

Returns

The new resulting Raster. If value is a float and the raster dtype is int, the raster type will be promoted to float.

Return type

Raster