[GRASS-user] Re: Command to summarize the frequency distribution
table
Moritz Lennert
mlennert at club.worldonline.be
Tue Dec 16 09:16:33 EST 2008
On 16/12/08 14:40, SGW00412 at nifty.com wrote:
> Dear Moritz:
>
> I wish to express my gratitude for your valuable advice. Thank you.
> It succeeded when having tried as follows:
>
> 0 thru 100=1 0-100m
> 100 thru 200=2 100-200m
> 200 thru 300=3 200-300m
> 300 thru 400=4 300-400m
> ....
> end
>
> save as alt_class.txt
>
> r.reclass input=old_rast_map output=new_rast_map < alt_class.txt
>
> r.stats new_rast_map -c
Note that you could have also done something similar with
r.report map=old_rast_map units=k nsteps=
playing around with nsteps to get the same ranges. But r.reclass +
r.stats/r.report gives you more precise control of your classes.
Moritz
More information about the grass-user
mailing list