[GRASS-user] Distance-weighted focal functions?

Hi,

After hacking together some R + r.mapcalc code, I started to wonder about how
hard it would be to add distance-weighting to r.neighbors... Specifically,
the focal distance-weighted mean difference. An example of what I was trying
to accomplish can be found here:

http://casoilresource.lawr.ucdavis.edu/drupal/node/937

Surely there is a more elegant solution using r.mfilter.fp, or the like...

Cheers,
Dylan

--
Dylan Beaudette
Soil Resource Laboratory
http://casoilresource.lawr.ucdavis.edu/
University of California at Davis
530.754.7341

Dylan Beaudette pisze:

Hi,

After hacking together some R + r.mapcalc code, I started to wonder about how hard it would be to add distance-weighting to r.neighbors... Specifically, the focal distance-weighted mean difference. An example of what I was trying to accomplish can be found here:

http://casoilresource.lawr.ucdavis.edu/drupal/node/937

Surely there is a more elegant solution using r.mfilter.fp, or the like...

Cheers,
Dylan

It shoud not be difficult. See solution in r.convergence in ADD-ONS
J.