[GRASS-dev] How to calculate mean coordinates from big point datasets?

Hamish hamish_b at yahoo.com
Mon Sep 23 02:14:33 PDT 2013


Moritz:

> Would be interesting to see results for big data. And AFAIK median is a 
> bit more difficult to do in awk. I imagine that replacing the median by 
> the mean in numpy is no problem (might be a flag to add to v.median).

see the old r.univar.sh shell script for an idea of how to get a median
using unix power tools, it's fairly trivial.

https://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/scripts/r.univar.sh/r.univar.sh#L135


Hamish



More information about the grass-dev mailing list