AnsweredAssumed Answered

Raster Calculator - using the conditional options

Question asked by LHogan on Feb 23, 2015
Latest reply on Feb 23, 2015 by LHogan

I'd like to use the raster calculator to convert 0 values in the raster to 0.0001.

 

I was trying to use the syntax below

 

CON ("raster1" == 0, 0.001, "raster1")

 

Based on 39974 - Change a particular value of a raster dataset to zero without changing the other values

 

1. In ArcMap, navigate to ArcToolbox > Spatial Analyst Tools > Map Algebra and open the Raster Calculator.

 

2. In the Raster Calculator, input the following syntax:

 

Con("InRaster" == -9999, 0 , "InRaster")

All I get is errors in 10.3 (see attachment).  I'm not a python user, so could really use help with this syntax.

 

Thanks for the help!

Attachments

Outcomes