Hi,<br><br><div class="gmail_quote">2009/8/26 Dylan Beaudette <span dir="ltr">&lt;<a href="mailto:debeaudette@ucdavis.edu">debeaudette@ucdavis.edu</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
ndeed. The current (C++) version of Starspan is more or less unsupported. I<br>
tend to use an older, stabler, version-- but have become frustrated with it<br>
in recent studies. I think that the current maintainer Jon Greenberg is<br>
working on an R implementation-- however I am not certain that this will<br>
scale well to very large rasters. A Python incantation would be more flexible<br>
than the current C++ version, but perhaps at a speed cost. The current<br>
version is blazing fast, but there aren&#39;t any C++ programmers working on it<br>
now. If there is sufficient interest, I would like to get it into OSGeo so<br>
that a more skilled programmer (than myself) can have a look at it.</blockquote><div><br>Python is extremely fast for some of these things. The version I tend to use &lt; <a href="http://sites.google.com/site/spatialpython/zonal-statistics">http://sites.google.com/site/spatialpython/zonal-statistics</a>&gt; is bearable even working with whole landsat scenes. The example there (with one MODIS 1km tile) takes in my laptop:<br>
%timeit S = ZonalStats ( labels_file, data_file, stats=&#39;mean&#39;) ; std_s = S.ResampleToGrid(&quot;std&quot;)<br>10 loops, best of 3: 1.44 s per loop<br><br>%timeit S = ZonalStats ( labels_file, data_file, stats=&#39;mean&#39;) ; std_s = S.ZonalStatistics(&quot;mean&quot;)<br>
10 loops, best of 3: 359 ms per loop<br><br><br>I plan to add a number of refinements to the code, such as adding a vector input that gets automaticall rasterised, something that the GDAL python wrappers have allowed for quite some time now, and adding these values to the output as extra fields, but so far, I have had no need for these, so I haven&#39;t really bothered.<br>
<br>Jose<br></div></div>