mg0959

Zonal Histogram Bins

Discussion created by mg0959 on May 31, 2013
Latest reply on Jun 3, 2013 by SWalbridge-esristaff
Hello all,

I am new to programming with arcpy, so this question may be basic.

I have a raster with positive and negative values.  I would like to create a histogram for the values inside a polygon.  I have used the Zonal Histogram tool in the spatial analyst tools (arcpy.sa), and I obtain an output table with 256 bins.  However, I do not know the ranges associated with the bins.   The bins are only given by OBJECTID numbering 1 to 256.  How do I determine the ranges of the bins using python?

I know that if I change the symbology of the raster to classified, I will get specified bin ranges given by the column "Label".  However, this seems to limit me to 32 bins.  Also, I would like to be able to do everything in python without having to change the symbology in arcmap.

Thanks in advance for the help!

Outcomes