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

2009-02-21 Thread Markus Metz
Hamish wrote: 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

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

2009-02-21 Thread Nikos Alexandris
Dylan: OK. This is the old stable branch (I think). If you can get 2.0 to compile I would suggest trying that. Dylan, which one is 2.0 for linux? Can't trace it. Thanks, Nikos ___ grass-user mailing list grass-user@lists.osgeo.org

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

2009-02-21 Thread Markus Neteler
On Sat, Feb 21, 2009 at 11:19 PM, Nikos Alexandris nikos.alexand...@felis.uni-freiburg.de wrote: Dylan: OK. This is the old stable branch (I think). If you can get 2.0 to compile I would suggest trying that. Dylan, which one is 2.0 for linux? Can't trace it. He meant Starspan. but I don't

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

2009-02-21 Thread Nikos Alexandris
On Sat, 2009-02-21 at 23:53 +0100, Markus Neteler wrote: On Sat, Feb 21, 2009 at 11:19 PM, Nikos Alexandris nikos.alexand...@felis.uni-freiburg.de wrote: Dylan: OK. This is the old stable branch (I think). If you can get 2.0 to compile I would suggest trying that. Dylan, which one is

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

2009-02-20 Thread Giovanni Pasini
G. Allegri ha scritto: Thanks for the ideas. I've just tried Starspan but it's performance is still too slow. I've let it run for 15 minutes... r.statistics is probably the best solution. I've investigated the ArcGIS method and it actually seems to use a similar method (ratserization of the

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

2009-02-20 Thread Jose Gómez-Dans
Hi, On Thursday 19 February 2009 13:20:52 G. Allegri wrote: I've just tried Starspan but it's performance is still too slow. I've let it run for 15 minutes... I think I've seen your name in the scipy mailing list. My take on this is to rasterize my vector data with gdal_rasterize (you can

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

2009-02-20 Thread Dylan Beaudette
On Thursday 19 February 2009, G. Allegri wrote: Hi Dylan. I didn't let it finish because 15 minutes were too many for my task. Ok, less then 5 hours and more of v.rast.stats, but too much respect to ArcGIS and the rasterization solution in GRASS. I've built the 1.2.03 version, downloaded from

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

2009-02-19 Thread G. Allegri
Thanks for the ideas. I've just tried Starspan but it's performance is still too slow. I've let it run for 15 minutes... r.statistics is probably the best solution. I've investigated the ArcGIS method and it actually seems to use a similar method (ratserization of the features and various

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

2009-02-19 Thread G. Allegri
r.statistics2 deals with accumulator-based aggregates, while r.statistics3 deals with quantiles. Great news! thanks Glynn There is currently no way to calculate the mode, although I'm unsure whether that is a meaningful concept for floating-point data. I agree, mode is about frequency so

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

2009-02-19 Thread Dylan Beaudette
On Thu, Feb 19, 2009 at 5:20 AM, G. Allegri gioha...@gmail.com wrote: Thanks for the ideas. I've just tried Starspan but it's performance is still too slow. I've let it run for 15 minutes... Hi, Did you ever let it finish? Can you post the version number? I have noticed that starspan tends to

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

2009-02-19 Thread G. Allegri
Hi Dylan. I didn't let it finish because 15 minutes were too many for my task. Ok, less then 5 hours and more of v.rast.stats, but too much respect to ArcGIS and the rasterization solution in GRASS. I've built the 1.2.03 version, downloaded from [1]. Anyway I suspect the same about GRASS driver

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

2009-02-19 Thread Nikos Alexandris
G. Allegri: I've built the 1.2.03 version, downloaded from [1]. Anyway I suspect the same about GRASS driver inefficiencies in GDAL/OGR [1] http://projects.atlas.ca.gov/frs/download.php/667/starspan-1.2.03.tar.gz Giovanni, sorry for the sort-of off-topic, but how do you build starspan with

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

2009-02-19 Thread G. Allegri
Hi Nikos. Giovanni, sorry for the sort-of off-topic, but how do you build starspan with GRASS support? Do you work under Ubuntu? I am trying the following: I haven't used it with GRASS datas but with a tiff and a shp. My hypoteses about GDAL/OGR inefficiencies are not related to this case...

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

2009-02-19 Thread G. Allegri
Thanks Markus. I'm out of office, but I will try your solution as soon as possible. 2009/2/20 Markus Metz markus.metz.gisw...@googlemail.com: Hi Giovanni, could you please check out svn checkout https://svn.osgeo.org/grass/grass-addons/raster/r.univar2.zonal and let me know if the results