[GRASSLIST:8943] Re: distance algorithim

Hamish hamish_nospam at yahoo.com
Tue Nov 8 20:32:06 EST 2005


> r.mapcalc "area.one=1"
> r.cost -k input=area.one output=distance start_rast=past_sites
> r.mapcalc "distance2=if(isnull(present_sites),null(),distance)"
> r.mapcalc "dist_meters=distance2 * (ewres()+nsres())/2."
> r.stats -1 -n input=dist_meters

> This takes about the same cumalative amount of time as my module, 


oh yeah, try using 100 percent memory in r.cost to speed things up.



Hamish




More information about the grass-user mailing list