[GRASS-user] Downscaling and aggregating raster categories/classes
Nikos Alexandris
nik at nikosalexandris.net
Wed Feb 27 12:40:38 PST 2013
On Wednesday 27 of February 2013 22:37:58 Nikos Alexandris wrote:
> I did:
(1st)
g.region zoom=A # this is a 25m pix-res map
g.region res=50 -pa
(then the rest!)
> #1
> r.resamp.stats input=A output=B method=sum # map A has two cats: 11 & 12
>
> #2
> r.mapcalc "B_int = int( B )"
>
> # 3
> r.recode in=B_int out=B_int_recoded rules=RecodingRules
>
> where RecodingRules contains:
>
> 44:44:11:11
> 45:45:11:11
> 46:46:13:13
> 47:47:12:12
> 48:48:12:12
>
> where class B = 11, class C = 12 and a (new) Mixed class is M=13.
Nikos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130227/cbdea85c/attachment.pgp>
More information about the grass-user
mailing list