# Calculating mean between the intersection of two polygons

I need to calculate the mean value (for a specific field of the attribute table) at the intersection of many polygons (.shp). I converted the polygons to raster based on the value I want to use to calculate the mean. I´m using Arcmap10.2. I’m open to suggestions. • Have you tried searching in ArcCatalog for Mean? – enolan Jul 18 '18 at 15:18
• It would be helpful to include a visual example of what you are after. – Aaron Jul 18 '18 at 18:21
• Hello! Here there is a snapshot of the polygons I´m working with. – Alfonsina López Jul 18 '18 at 18:55
• Did you mean to say weighted mean? – Kirk Kuykendall Jul 18 '18 at 19:21
• Converting polygons to raster results in non overlapping cells. You need to explain better what is it you want and inputs available. – FelixIP Jul 20 '18 at 1:40

Thanks for all the comments. I finally solved the problem, it was much simpler than I´d imagined. Effectively, the CellStatistics tool was the answer, but the result I was obtaining was a raster that didn´t comprise the total area of all my rasters. Once I added the MAX extension, it worked! Here I leave the code, in case is useful for someone dealing with a similar issue.

``````**import arcpy
arcpy.CheckOutExtension("spatial")

#set input, output and workspace folders
InputFolder_alfo = "C:/Users/Alfonsina/Desktop/Distance"
arcpy.env.workspace = InputFolder_alfo
OutputFolder_alfo = "C:\Users\Alfonsina\Desktop\Distance\output_prueba_alfo"

# Set the extent environment using MAXOF
arcpy.env.extent = "MAXOF"

#Create a raster list of all raster files in input folder
raslist = arcpy.ListRasters("*", "All")

# Run cell statistics
calc = arcpy.sa.CellStatistics(raslist, statistics_type = "MEAN",
ignore_nodata = "DATA")
calc.save(r'C:\Users\Alfonsina\Desktop\Distance\output_prueba_alfo\raster-
04.img')**
``````