HOW TO

Convert NoData values to other values for raster data

Last Published: April 9, 2021

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.

Article ID:000010059

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