# Local variables: int_example1 = "C:\\DATA\\RASTER\\DEM\\int_example1" example = "C:\\temp\\python\\zones.tif" ZonalSt_int_1 = "C:\\temp\\python\\zonal_stats.tif" # Process: Zonal Statistics arcpy.gp.ZonalStatistics_sa(int_example1, "VALUE", example, ZonalSt_int_1, "MEAN", "DATA")
# Local variables: int_example1 = "C:\\DATA\\RASTER\\DEM\\int_example1" example = "C:\\temp\\python\\zones.tif" ZonalSt_int_1 = "C:\\temp\\python\\zonal_stats.tif" # Process: Zonal Statistics stats = arcpy.sa.ZonalStatistics(int_example1, "VALUE", example, "MEAN", "NODATA")
stats.save(r"C:\temp\python\Zonal_Stats.tif")
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.