geoutils.Raster.raster_equal#
- Raster.raster_equal(other, strict_masked=True, warn_failure_reason=False)#
Check if two rasters are equal.
This means that are equal: - The raster’s masked array’s data (including masked values), mask, fill_value and dtype, - The raster’s transform, crs and nodata values.
- Parameters:
other (
TypeVar(RasterType, bound= RasterBase)) – Other raster.strict_masked (
bool) – Whether to check if masked cells (in .data.mask) have the same value (in .data.data). Only when comparing two Rasters objects with masked arrays.warn_failure_reason (
bool) – Whether to warn for the reason of failure if the check does not pass.
- Return type: