[GRASS-user] Generalization or interpolation using the majority

Markus Metz markus.metz.giswork at googlemail.com
Tue Dec 21 07:10:59 EST 2010


2010/12/21 António Rocha <antonio.rocha at deimos.com.pt>:
> Greetings
>
> I have a raster classification  map with a 100 meters resolution and I want
> to interpolate to 200m resolution using GRASS and, the output value must be
> the most frequent value (majority).

r.resamp.stats method=mode

would do that

Markus M


> Here goes an examples. Intput:
> 1 1 1 1 1 2 3 4
> 1 2 2 3 2 2 3 3
> 2 2 5 2 2 2 2 2
> 3 2 5 5 1 3 4 5
> Output must be:
> 1 1 2 3
> 2 5 2 2
>
> My question is what method do you advise to be used?
>
> Thanks
> Antonio
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature
> database 5720 (20101221) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>


More information about the grass-user mailing list