Two rasters
- slope (black and white grid with slope values)
- rasterized property (red, values do not matter)
I want to erase the red raster from the slope raster
I found this thread
https://community.esri.com/thread/190381-how-to-perform-reverse-clip
and they suggested something like this (for my case block is the red raster and buff is the slope)
Con(IsNull("block.tif"),"buff.tif")
this produces the output in the multi colors. But it is not the full erase, part of the buff/slope is missing
I do not want to go the vector conversion route.
Answer needs to use Raster Calculator syntax
Answer
Use the Reclassify tool to turn your red areas into NoData values and the red area NoData values to zeros. Before you do this ensure use the geoprocessing settings to ensure the output from the Reclassify has the same extent at both data sets. Then add the resulting reclassified surface with your slope using the Plus tool.
Con(IsNull("block.tif"), "buff.tif")
No comments:
Post a Comment