[GRASS-user] r.mapcalc and the neighborhood modifier
Hanan Karam
HananKaram at esinternational.com
Tue Jul 16 10:03:27 PDT 2013
Hi Rainer,
I had a similar problem recently.
I was working with 8 unique flow directions, and I created a separate map for each flow direction. Something like this...
r.mapcalc expression="flowdir1_dispersal = if(flowdir=1, seeds[xoffset_1,yoffset_1], null())"
r.mapcalc expression="flowdir2_dispersal= if(flowdir=2, seeds[xoffset_2,yoffset_2], null())"
etc.
Then, patch the different maps using r.patch.
I hope this is helpful.
Hanan
This message has been scanned for malware by Websense. www.websense.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130716/fbc86731/attachment.html>
More information about the grass-user
mailing list