HOW TO

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

Last Published: April 25, 2020

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.

Article ID:000006419

Software:
  • ArcMap

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic