Hi there, I need the zonal statistics mean value for each polygon to be stored in the attribute table of the polygon in the shapefile attribute table. The zonal statistics gives me a raster and a zonal statistics to table gives me a table. I don't want these. I want the values of for example mean (mean of pixels within each polygon) right in my shapefile. Any suggestion is appreciated.
Thanks
Then you simply Join the Zonal statistics as table back to the zone file and everything will be there.
Thanks
Marzieh, if my suggestion worked, or any suggestion worked, could you mark the correct one so that people searching for answers will know what was the answer.
You also should look into the Join Field tool, this can be easily set up in a little Model Builder tool to run your zonal statistics and join the statistic you want to the shapefile table. This tool has kind of slow performance but it is very handy for this particular workflow.
Curtis... don't forget to try the simple python....
arcpy.da.TableToNumpyArray(stuff) ... followed by
arcpy.da.ExtendTable(stuff)
Joins are quick and permanent, particular if you have a clean OBJECTID field in the input table and the destination table. My new fav.