[GRASS-user] Suggestion for creating a script to create a map of agricultural capacity
Moritz Lennert
mlennert at club.worldonline.be
Wed May 29 00:12:26 PDT 2013
On 28/05/13 21:33, Glynn Clements wrote:
> But for this specific case, it's probably simpler to just generate an
> integer version of the slope map (if it isn't already) and use
> r.reclass, e.g.
>
> r.reclass input=slope output=slope.reclass rules=-<<EOF
> 0 thru 2 = 1
> 3 thru 5 = 2
> 6 thru 10 = 3
> 11 thru 15 = 4
> 16 thru 45 = 5
> 46 thru 70 = 6
> * = 7
> EOF
>
Or keep the FCELL or DCELL and just use r.recode:
r.recode input=slope output=slope.recode rules=-<<EOF
*:2:1
2:5:2
5:10:3
10:15:4
15:45:5
45:70:6
70:*:7
EOF
?
Moritz
More information about the grass-user
mailing list