ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

How to change NoData cells to a value

Available with Spatial Analyst license.

Using the Is Null in conjunction with the Con tool, you can change NoData values on a raster to any desired value while retaining the original non-NoData values for the remaining cells.

For example, to create a raster where the NoData areas have been assigned to a particular value, such as 100, while the other (non-NoData) cells retain their values, the procedure would be as follows:

  1. Identify the NoData locations with the IsNull tool:
    • Input raster : InRas1

      Output raster : OutNullRas

  2. Use Con on the results to give the original NoData areas a value:
    • Input conditional raster : OutNullRas

      Expression : "Value = 1"

      Input true raster or constant value : 100

      Input false raster or constant value : InRas1

      Output raster : NullTo100_Ras

In the first step, IsNull gives the NoData areas a value of 1 and the non-NoData areas a value of 0. In the second step, for cells where the input conditional raster is true (value of 1), the output value is 100. For cells where the input conditional raster is false (value 0), the output is given the value of the original raster at that location.

Related Topics

  • Is Null
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal