[GRASS-user] Raster grow within area boundaries

Michel Wortmann wortmann at pik-potsdam.de
Fri Oct 19 06:48:21 PDT 2018


Hi team,
I would like to grow the value of some pixels (e.g. streams) but only within irregular areas (e.g. subbasins), i.e. values of should not grow beyond the area boundary (as r.grow.distance would do). I could loop over each area, mask it and use r.grow.distance and then patch it all together. But that is time consuming with several thousand areas. Does anyone have a better idea how to achieve this?

E.g. (the boundaries argument doesn’t exist):

r.grow.distance input=stream value=streams_grown boundaries=subbasins

Thanks a lot,
Michel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20181019/dba5b782/attachment.html>


More information about the grass-user mailing list