I am using ArcMap 10.5.1 and .tif raster data. When I executed the SetNull tool to convert all "-9999" values into NoData, the range of values in the output raster was greater than that in the original raster.

The input raster's value range is (-9999,896.762), but the output value range is (0, 977.176). I don't know how did this operation generate values greater than 896.762.

My arcpy code stand-alone script:

import arcpy
from arcpy.sa import *


inputRas = "C:\\Desktop\\Data\\input.tif"
outputRas = SetNull(inputRas, inputRas, "VALUE = -9999")

I also tried the Con statement and the output values had the same messed-up range as well.

Any idea how to fix it?

  • Are you abslutley sure it changed the values? Because ArcMap values are often based on a sample of the data, and now you have no -9999's. – SoilSciGuy Jun 12 '18 at 14:36
  • Do you mean that the value range shown on the Table of Contents may not be accurate? – Elisa Jun 12 '18 at 14:48
  • 1
    You are absolutely right! The reclassification was successful. Thanks!!! – Elisa Jun 27 '18 at 13:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.