HOW TO
NaN (Not a Number) is a value attributed to pixels in a raster that are irrelevant to the data in an image. Similar to NoData values, they may be visible within the raster with an assigned colour value, but they do not represent a data value in the raster layer for inspection or analysis.
In the image below, a raster layer is overlayed on a geographic style basemap. The lighter sections indicate a value distribution over a surface, but many of the darker sections at the edge of the raster are NaN values.
When performing analysis, you may wish to remove these NaN values. However, as these are not number values, it is not as simple as when the values are 'NoData' values.
The solution is to clear NaN values by converting them to NoData values, using the Raster Calculator to multiply the values of each cell by 1, or by using the Set Null tool, as follows:
Note: An ArcGIS Pro Spatial Analyst or Image Analyst license is required.
Article ID: 000034222
Get help from ArcGIS experts
Download the Esri Support App