down votefavori I have a question about clipping a part from a raster according to the extent of a polygon. Should Clip_management and ExtractByMask create the same results if I set the "NO_MAINTAIN_EXTENT" option for Clip and the "snapRaster" option for Extract by Mask (to avoid any resampling)? arcpy.Clip_management(raster, "#", outraster, "in_memory\shape_lyr", "-9999", "ClippingGeometry",
"NO_MAINTAIN_EXTENT") vs arcpy.env.snapRaster = raster outExtractByMask = ExtractByMask(raster, "in_memory\shape_lyr")outExtractByMask.save(outraster) If yes, why my two outputs still differ? See photo: I can analyse that the method: Clip_management produced 3 values more than ExtractByMask (comparing two attribute tables). Any ideas? I just found one of the 3 pixels, that was made by using Clip_management but not ExtractByMask . It's driving me crazy. Im using ArcGis 10.4.1. After a long time having no answer, I decided for myself that Extract By Mask is more accurate than Clip management. Is it true?
... View more