English

How To: Limit the values of a raster layer with the Spatial Analyst extension in ArcMap

Summary

Instructions provided explain the procedure to use Raster Calculator and the Con statement to limit the values of a raster layer.

Procedure

Follow these steps to limit the values of a raster layer in ArcMap.

Note:
Enable the Spatial Analyst extension to perform these steps.
  1. In ArcMap, click Search Click Search., and search for Raster Calculator. The Raster Calculator tool opens.
The raster calculator.
  1. In Raster Calculator, construct one of the following expressions:

The expression below changes all cells with a value of less than zero to zero. The remainder of the cells maintain the original values.

Con("raster layer" < 0, 0, "raster layer")

The expression below changes all cells with a value of less than zero to NoData. The remainder of the cells maintain the original values.

Con("raster layer" < 0, SetNull("raster layer"), "raster layer")
  1. Specify the Output raster field.
  2. Click OK.

Related Information