[GRASS-dev] r.shrink??

Jarek Jasiewicz jarekj at amu.edu.pl
Wed May 26 16:03:03 EDT 2010


Michael Barton pisze:
> Am I missing something or is there no module that does the opposite of 
> r.grow (i.e., shrink rasters of a given category by 1 or more pixels)? 
> r.thin tries to thin to a line.
>
> Michael
> ____________________
> C. Michael Barton
> Director, Center for Social Dynamics & Complexity 
> Professor of Anthropology, School of Human Evolution & Social Change
> Arizona State University
>
> voice:  480-965-6262 (SHESC), 480-727-9746 (CSDC)
> fax:          480-965-7671 (SHESC),  480-727-0709 (CSDC)
> www: www.public.asu.edu/~cmbarton, 
> <http://www.public.asu.edu/%7Ecmbarton,> http://csdc.asu.edu
>
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
for that I use following mapcalc expression:

echo 'map=if(  isnull(map[-1,-1])||isnull(map[-1,0])|| \
isnull(map[-1,1])||isnull(map[0,-1])|| \
isnull(map[0,1])||isnull(map[1,-1])||isnull(map[1,0])|| \
isnull(map[1,1]), map,null())'| r.mapcalc

this work for me
Jarek




More information about the grass-dev mailing list