[Numpy-discussion] 2D binning
Mathew Yeates
mat.yeates at gmail.com
Tue Jun 1 16:07:58 EDT 2010
Hi
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.
Mathew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100601/f3877fd1/attachment.html>
More information about the NumPy-Discussion
mailing list