Using spatial analyst in model builder

220
1
01-18-2024 07:03 PM
Bradmayger
New Contributor II

I am trying to select a value of 2 from a raster (tif) using model builder, and then adding these rasters together, I cant seem to find how to select out the value = 2 to start with, any help please ?

 

0 Kudos
1 Reply
DanPatterson
MVP Esteemed Contributor

several ways, but Con is a first look

Con (Image Analyst)—ArcGIS Pro | Documentation

out_raster = Con(InRas1, 2, 0,  "Value == 2")

Then you can use Plus to add the other raster to out_raster


... sort of retired...
0 Kudos