[GRASS-dev] r3.univar

Paul Kelly paul-grass at stjohnspoint.co.uk
Sat Feb 17 14:48:15 EST 2007


I haven't looked at any of the code, but if as you say it is mostly 
identical to r.univar then perhaps it might be possible to compile 
r.univar and r3.univar from the same directory, as is done for r.mapcalc 
and r3.mapcalc? It would save cloning of code in the source distribution, 
make bugfixes easier - and an easy way for you to share that new function.
Just an idea,

Paul

On Sat, 17 Feb 2007, [ISO-8859-15] Sören Gebbert wrote:

> Hi devs,
> i have written a new raster3d module named r3.univar.
> The code is mostly identical with r.univar from Hamish.
>
> I have replaced the qsort with a heapsort function,
> because qsort is in the worst case scenario quite slow on large datasets.
>
> Maybe we can put heapsort as library functions into the
> grass library, so r.univar and other modules can use them too?
> Or is this function already present in grass?
>
> The new module is available here:
> http://www-pool.math.tu-berlin.de/~soeren/grass/modules/r3.univar.tar.bz2
>
> Best regards
> Soeren
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
>


More information about the grass-dev mailing list