semantique.processor.utils.null_as_zero#
- semantique.processor.utils.null_as_zero(x)[source]#
Convert all null values in an array to 0.
- Parameters:
x (
xarray.DataArray
ornumpy.array
) – The input array.- Returns:
Convert all null values in an array to 0.
x (xarray.DataArray
or numpy.array
) – The input array.