[GRASS-user] Re: Defining/using MMU
Jarek Jasiewicz
jarekj at amu.edu.pl
Mon Jul 5 15:59:05 EDT 2010
LeeDaniel pisze:
> Hi Lisa,
>
>
> Maybe that's not the most elegant way to do things, but it's the one that
> popped into my mind. Anybody have a better method?
>
yes, new add-on module r.area can do that. First you need run r.clump to
create unique areas next, run r.area to remove areas smaller than
treshold (in cells not in ha) and return binary map with 1 (leave) and 0
(remove)
r.area -b input=classified_map output=bin_map
next
r.mapcalc removed=if(bin_map==1,classified_map,any_value_or_null)
that all.
second option is to use r.reclass.area. it work in ha so it is probably
what you need.
> Best,
> Daniel
>
More information about the grass-user
mailing list