[GRASS-dev] r.shrink??
Jarek Jasiewicz
jarekj at amu.edu.pl
Thu May 27 00:35:13 EDT 2010
Michael Barton pisze:
> Thanks. Of course this only works for maps with raster areas surrounded by nulls.
>
> 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://csdc.asu.edu
>
>
>
>
>
>
>
>
>
>
> On May 26, 2010, at 1:03 PM, Jarek Jasiewicz wrote:
>
>
>> 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
>>
>>
>>
not only:
...map[-1,1]==0... or any other background
J.
More information about the grass-dev
mailing list