1

I am writing a toolbox script that will generate a difference surface using the raster calculator in ArcMap by subtracting a raster of interest from many other existing rasters, then outputting the raster statistics. The rasters are elevation grids. Some have the same extents, but the data only has overlapping empty cells. I am trying to find a way to test if there are overlapping data cells (not extents) before the raster calculator tool is performed on the two surfaces.

Does anyone know of a concise way to do this?

Otherwise, I think I will just have to check if the resulting raster layer is all no values and delete if true, but I'd like to avoid generating the difference surface beforehand if possible.

2

1 Answer 1

0

It seems that the most robust and fastest workflow:

Con(~IsNull("LARGE"),1)

to create LARGE_BINARY and

enter image description here

to test overlap with others. Output "abc" table without overlap will have no records:

enter image description here

Easily scripted as well.

I tried an alternative, which is essentially the same as yours:

Con(~IsNull("LARGE"),1)*Con(~IsNull("LiDAR2016DEMHillshade2.TIF"),1)

Output:

enter image description here

and

enter image description here

failed:

enter image description here

So your idea is not working or maybe I don't know how to make it work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.