0

screenshot I want to set null to the value<=0 using the raster calculator in ArcMap, but after that, I got a new raster with a changed maximum value. Is there any problem with my setting? How to keep the other value (e.g. maximum value) the same but set null to value<=0? please see the attached screenshot.

7
  • Con(raster >0, raster) – FelixIP Jan 7 at 5:19
  • 3
    Statistics of original may have been approximate. You can run calculate statistics tool on original to check. – user2856 Jan 7 at 5:29
  • @user2856 Sorry, I may not understand what you mentioned. Could you describe it in more detail? Thank you so much. Actually, I mosaic two MODIS images into one and covert the original format(.hdf) to the new one (.tiff). And then I used the new one to do the raster calculator. – Yiqian Zeng Jan 8 at 3:42
  • @FelixIP the result of Con(raster >0, raster) is the same as that of SetNull(raster <=0, raster) – Yiqian Zeng Jan 8 at 3:42
  • @user2856 what is the difference between the calculate statistics tool and ArcToolbox? – Yiqian Zeng Jan 11 at 2:15
1

You should run the Calculate Statistics tool on your original raster.

This is to ensure that the raster statistics (min, max, stdev etc) are correct, not approximate. You should never rely on the min/max values displayed in the layer legend in the table of contents, they can be approximate (derived from a sample).

Your Answer

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

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