Hi Matthew,<br><br>I've been working on "rolling/windowed" libraries for quite a while.  <br><br>I'm currently working on implementations for basic moment and rank statistics - they are pretty much done and I am trying to maneuver them into  apache commons math for java.
<br><br>I am also interested in implementing these statistics for python/numpy and R.  I have seen a little bit for R, but nothing yet for numpy.<br><br>/brad<br><br><div class="gmail_quote">On Nov 25, 2007 5:00 PM, Matthew Perry <
<a href="mailto:perrygeo@gmail.com">perrygeo@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br><br> I'm not sure if my terminology is familiar but I'm trying to do a
<br>"moving window" analysis (ie a spatial filter or kernel) on a 2-D<br>array representing elevation. For example, a 3x3 window centered on<br>each cell is used to calculate the derivate slope of that cell.<br>
<br> Can this easily be implemented using numpy?<br><br> Currently I have tried implementing in pure python loops (too slow)<br>and c++ (fast but more difficult to compile, distribute, wrap in<br>python calls, etc). I think a good solution would be to leverage numpy
<br>which is both fast and and easy package for end users to install.<br><br> An example of the C++ code I'm trying to emulate is at<br><a href="http://perrygeo.net/download/hillshade.html" target="_blank">http://perrygeo.net/download/hillshade.html
</a> . Does anyone have any<br>tips or examples out there? Where should I start researching this?<br><font color="#888888"><br>--<br>Matthew T. Perry<br><a href="http://www.perrygeo.net" target="_blank">http://www.perrygeo.net
</a><br>_______________________________________________<br>Numpy-discussion mailing list<br><a href="mailto:Numpy-discussion@scipy.org">Numpy-discussion@scipy.org</a><br><a href="http://projects.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">
http://projects.scipy.org/mailman/listinfo/numpy-discussion</a><br></font></blockquote></div><br>