English

How To: Convert NoData values to other values for raster data

Summary

Various spatial analysis applications require raster NoData cells to be factored into an analytical operation. Since NoData cells are ignored in any analysis, such requirements can only be met if those cells have a specific value assigned to them.

ArcGIS offers a couple options to convert NoData values to another constant, such as zero. One option is to use the Con tool in conjuction with the IsNull tool from the Spatial Analyst toolbox to convert NoData values. Refer to ArcMap: How to change NoData cells to a value for more information. Alternatively, use the Raster Calculator tool to call the Con and IsNull tools to use them to change NoData values to other values.

Procedure

In both versions 10.x and 9.3, the Con tool can be used outside of the Raster Calculator to create a new raster with reset NoData (Null) values. However the Raster Calculator may also be used to call the Con and IsNull tools to perform the same task. The syntax is different in 9.3 and 10.x. The examples are shown below.

Below is an example of the statement to convert the NoData values to 0 for the Raster Calculator in 9.3:

The Raster Calculator tool in ArcMap version 9.3 displaying the expression to call the Con and IsNull tools.

Below is an example of the statement to convert the NoData values to 0 for the Raster Calculator in 10.x:

The Raster Calculator tool in ArcMap version 10.x displaying the expression to call the Con and IsNull tools.

Note:
Optionally, use Python to automate setting NoData values to other values. Refer to How To: Automate setting null values of rasters to zero for more information.

Related Information

Last Published: 4/8/2021

Article ID: 000010059

Software: ArcGIS-ArcEditor 9.3.1, 9.3, 9.2, 10 ArcGIS-ArcInfo 9.3.1, 9.3, 9.2, 10 ArcGIS-ArcView 9.3.1, 9.3, 9.2, 10