deanpodolsky

recording pixel value with Python script in ArcGIS 10.x

Discussion created by deanpodolsky on Jan 10, 2014
Latest reply on Jan 14, 2014 by doug.sands
A scripting newbie question...

I'd like to write a Python script for ArcGIS 10.x that would record the pixel value for all pixels in a raster. Furthermore, I'd like to only record a given value once in the results. For example, if there are 23 values of 180 overall, only record one instance of that value.

The raster in question is 4-band so the results would have to include values for all pixels in each band, recorded separately by band. The Pixel Inspector tool (see image below) will show you the value per pixel (and surrounding pixels), but I'd like to record the values as described.

Any help and examples would be greatly appreciated. Thanks in advance.


[ATTACH=CONFIG]30411[/ATTACH]

Outcomes