[Numpy-discussion] 2D binning

Mathew Yeates mat.yeates@gmail....
Tue Jun 1 15:07:58 CDT 2010

Can anyone think of a clever (non-lopping) solution to the following?

A have a list of latitudes, a list of longitudes, and list of data values.
All lists are the same length.

I want to compute an average  of data values for each lat/lon pair. e.g. if
lat[1001] lon[1001] = lat[2001] [lon [2001] then
data[1001] = (data[1001] + data[2001])/2

Looping is going to take wayyyy to long.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100601/f3877fd1/attachment.html 

More information about the NumPy-Discussion mailing list