I have two raster layers, both in the same extent and with the same cell size, where one layer is a single pixel (value = 1) and the other layer has many more pixels (all also = 1), but still has many cells with NoData.
I am trying to write a simple line of Python code that will return True if this single pixel lies on top of (overlays) pixels in the other raster layer.
I was thinking I could just do a Raster Calculator operation (Raster1 + Raster 2), but then is there a way to return True if this resulting raster contains the overlap value (e.g. 2)?
I'm new here so apologies if this question has been asked before or if there is a really simple answer!
Thanks in advance.
أكثر...
I am trying to write a simple line of Python code that will return True if this single pixel lies on top of (overlays) pixels in the other raster layer.
I was thinking I could just do a Raster Calculator operation (Raster1 + Raster 2), but then is there a way to return True if this resulting raster contains the overlap value (e.g. 2)?
I'm new here so apologies if this question has been asked before or if there is a really simple answer!
Thanks in advance.
أكثر...