Replacing Raster Values

10-07-2013 06:37 AM
New Contributor
I'm working on a thesis about soil sealing and I'm using Arcgis 9.3. I have two rasters and I have a problem in replacing raster values from a raster to another one. In a few words I have two rasters Ras1 and Ras2 and I want to change the Ras1. For those interested areas of Ras1 having nodata cells and wrong data cells, I want to replace cell values with Ras2.
Is there any way to replace raster values in Ras1 with Ras2 of my chosen area in the image?

0 Kudos
1 Reply
Occasional Contributor
Hi Gianluca ,

In version 9.3 you could use the Raster Calculator tool and map algebra to create a conditional statement. You will need to have the Spatial Analyst extension to use this tool. Add your rasters an ArcMap session, enable Spatial Analyst and open the Raster Calculator.  To replace a particular value in Ras1 with Ras2 you would enter.

Con([Ras1] == value, [Ras2], [Ras1])

Below are two how to articles on this topic.

HowTo:  Convert NoData values to other values for raster data

HowTo:  Change a particular value of a raster dataset to zero without changing the other values

Con tool documentation for 9.3

Best wishes.
0 Kudos