Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #63729

record pixel value with Python script

Newsgroups comp.lang.python
Date 2014-01-11 14:53 -0800
Message-ID <a2d0849e-cd09-4208-9a96-115fae7afa44@googlegroups.com> (permalink)
Subject record pixel value with Python script
From DPod <deanpodolsky@gmail.com>

Show all headers | View raw


A scripting newbie question...

I'd like to write a Python script for ArcGIS 10.x (ArcPy or Python 2.6.5) 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 (6017 x 7715 pixels) so the results would have to include values for all pixels in each band, recorded separately by band. Ideally I'd like to write to an Excel file or at least a .csv file.

Any help and examples would be greatly appreciated.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

record pixel value with Python script DPod <deanpodolsky@gmail.com> - 2014-01-11 14:53 -0800
  Re: record pixel value with Python script maxerickson@gmail.com - 2014-01-11 15:35 -0800
    Re: record pixel value with Python script DPod <deanpodolsky@gmail.com> - 2014-01-11 15:40 -0800

csiph-web