geoutils.Raster.__ne__

Contents

geoutils.Raster.__ne__#

Raster.__ne__(other)[source]#

Element-wise negation of two rasters, or a raster and a numpy array, or a raster and single number.

This operation casts the result into a Mask.

If other is a Raster, it must have the same shape, transform and crs as self. If other is a np.ndarray, it must have the same shape. Otherwise, other must be a single number.

Return type:

TypeVar(RasterType, bound= Raster)