Re: [Numpy-discussion] creating zonal statistics from two arrays

2010-12-20 Thread Matt Gregory
On 12/8/2010 9:48 AM, josef.p...@gmail.com wrote: > Just a thought since I'm not doing spatial statistics. > > If you can create (integer) labels that assigns each point to a zone, > then you can treat it essentially as a 1d grouped data, and you could > use np.bincount to calculate some statistics

Re: [Numpy-discussion] creating zonal statistics from two arrays

2010-12-08 Thread josef . pktd
On Wed, Dec 8, 2010 at 12:12 PM, Gregory, Matthew wrote: > Hi all, > > Likely a very newbie type of question.  I'm using numpy with GDAL to > calculate zonal statistics on images.  The basic approach is that I have a > zone raster and a value raster which are aligned spatially and I am storing

[Numpy-discussion] creating zonal statistics from two arrays

2010-12-08 Thread Gregory, Matthew
Hi all, Likely a very newbie type of question. I'm using numpy with GDAL to calculate zonal statistics on images. The basic approach is that I have a zone raster and a value raster which are aligned spatially and I am storing each zone's corresponding values in a dictionary, then calculating