[GRASS-user] Suggestion for creating a script to create a map of agricultural capacity
Hamish
hamish_b at yahoo.com
Wed May 29 01:20:20 PDT 2013
Glynn 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
note that r.reclass can read floating point maps too, but
it's a bit buggy/weird,
https://trac.osgeo.org/grass/ticket/1525#comment:10
Hamish
More information about the grass-user
mailing list