Hello, I want to filter out small patches (such as <2 cells) while keeping the shape of other large or linear patches. Could you tell me which commands in GRASS can do that? Though r.neighbors(mode) can filter out the small patches, but it also change the shape of other patches. H. Yuan