[GRASS-user] improve v.rast.stats speed?

Hamish hamish_b at yahoo.com
Fri Feb 20 22:08:44 EST 2009


Jose Gómez-Dans wrote:
> My take on this is to rasterize my vector data with gdal_rasterize (you
> can have a look at the rasterisation code and see how it works, in case
> you need to eg buffer your vector data), load it up in python, load my
> dataset in python, and calculate whatever stats with scipy+numpy. If 
> you look at this thread, you'll find it is very fast: 
> <http://article.gmane.org/gmane.comp.python.scientific.user/19412>.

numpy is already requested by the new wxGUI*, so with numpy around anyway,
maybe some python module could be written for grass7, where python is a
full dependency?

* see gui/wxpython/gui_modules/profile.py

just an idea,

Hamish



      



More information about the grass-user mailing list