AnsweredAssumed Answered

Percent clip color ramp stretch using python?

Question asked by epsimpson on Sep 19, 2012
Latest reply on Sep 20, 2012 by epsimpson
I'm using 10.0.  Within raster layer Properties, Symbology dialog there is an option within Stretch Type to perform a percent clip from the top or bottom of the histogram.  This technique works very well for what I'm doing.  I have too many rasters to do this manually, but I'm unable to duplicate the effect within python.  I have floating point rasters, and I want to see only the top and bottom .01 percent of each raster - 2 rasters output, 1 top and 1 bottom.  I can set thresholds based on percent of the max value of the raster, but that's not nearly the same, and setting the minimum threshold based on the raster max value doesn't work well at all.  The minimum value is always zero, so that's not useful at all. 

Does anyone know if there is a tool available to arcpy which will do this or, barring that, how arcGIS calculates that clip value so that I can try to duplicate it using python?

Thanks!

P.

Outcomes