I am working in ArcGIS 10.5 (with the spatial analyst extension); I'm relatively inexperienced but I understand what I am trying to do, just need some help on how to accomplish it.

I am working with MODIS (raster) data. I am trying to reclassify (group) cells in a raster to have the same value if 1) in the same 3x3 neighborhood AND 2) if the difference of their values is less than 6. See picture below for example of what I am trying to do.Raster Reclass Example

  • Yes, I meant a 3x3 neighborbood, I edited my question
    – Natalie S.
    Aug 7, 2018 at 12:52
  • 1
    Have a look here please gis.stackexchange.com/questions/73061/… Aug 7, 2018 at 13:52
  • Thank you for the suggestion; however I am attempting something a little more complicated since I don't care about specific values, but that the difference between all pixels in a group is less than 6 and that they are close to each other in geographic space
    – Natalie S.
    Aug 7, 2018 at 18:22

1 Answer 1


Try using the Focal Statistics tool in Spatial Analyst, with Range as the statistic. You could then reclassify this output or possibly use it as a mask involved in reclassifying, depending on how you get the final output values.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.