#1024: Let r.grow shrink raster
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
Type: enhancement | Status: new
Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-develbranch6
Keywords: | Platform: All
Cpu: All |
-------------------------+--------------------------------------------------
Grass can grow a raster, but there is no way to shrink a raster except to
completely thin it. If r.grow could accept values less than 1.0, this
could be accomplished.
That is, if you put in a value of 0.8, the raster would shrink by 20%. Is
this feasible given the code of r.grow?
#1024: Let r.grow shrink raster
--------------------------+-------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
Type: enhancement | Status: new
Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-develbranch6
Resolution: | Keywords: r.grow
Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Changes (by hamish):
* keywords: => r.grow
Comment:
example on how to shrink maps added to the r.grow man page in r41617. I
guess you could wrap that in a script called r.shrink if you really wanted
to.
btw, radius=1 is growing 1 cell outward. radius=0.5 is growing 1/2 a cell
outward (which is still outward). radius=0 is the status quo, and
radius=-xx would be inward in your proposal. it's a distance not a
multiplier.
#1024: Let r.grow shrink raster
--------------------------+-------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
Type: enhancement | Status: new
Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-develbranch6
Resolution: | Keywords: r.grow
Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by cmbarton):
Replying to [comment:1 hamish]:
> example on how to shrink maps added to the r.grow man page in r41617. I
guess you could wrap that in a script called r.shrink if you really wanted
to.
>
Guess I don't have the latest build on this (mine is a few weeks old now).
Is this on the web now?
>
> btw, radius=1 is growing 1 cell outward. radius=0.5 is growing 1/2 a
cell outward (which is still outward). radius=0 is the status quo, and
radius=-xx would be inward in your proposal. it's a distance not a
multiplier.
#1024: Let r.grow shrink raster
--------------------------+-------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-develbranch6
Resolution: fixed | Keywords: r.grow
Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment(by wenzeslaus):
Note that `r.grow` in trunk (7.1) does not have this capability anymore,
follow #1024 for more updates. Since r62819 addons for 7 have
`r.grow.shrink` (older C version of `r.grow`).