How to exlude raster cell from the cost surface estimation?

921
2
Jump to solution
11-27-2019 01:06 AM
RobertoFilloramo
New Contributor III

I use ArcGIS 10.1, I am trying to generate a cost surface (Path Distance tool) in order to generate a least-cost path. The problem is that I would exclude a specific area of the raster from the calculation. I tried to remove it with the tool Clip, but it didn't work (it took away the interested raster portion leaving just the useless one). Do you have a suggestion?

0 Kudos
1 Solution

Accepted Solutions
DanPatterson_Retired
MVP Emeritus

Don't know if 10.1 has 

Erase—Help | ArcGIS Desktop 

It would require the spatial analyst extension for that version in any event.

Alternatively, you could mask the area with null values using

con and setnull

Setting values to NoData with Set Null—Help | ArcGIS Desktop 

nodata cells are excluded from raster analyses

View solution in original post

0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus

Don't know if 10.1 has 

Erase—Help | ArcGIS Desktop 

It would require the spatial analyst extension for that version in any event.

Alternatively, you could mask the area with null values using

con and setnull

Setting values to NoData with Set Null—Help | ArcGIS Desktop 

nodata cells are excluded from raster analyses

0 Kudos
RobertoFilloramo
New Contributor III

Thank you for your answer... I tried with Con and Set Null tools, firstly I converted my polygon to raster (setting for the extent and the snap the slope), then I use Map Algebra using the expression "Con (IsNull (polytoraster), slope, 0)" (output Slope_Con) and afterwards I used the new raster in the SetNull tool setting as input conditional raster "Slope_Con", expression "value=0" and input false raster or constant value "Slope_Con".
The result was what I wanted.