To be sure what number corresponds to what color, just plot your map and use the mouse query tool (r.what). Then you can click on a color and see the category number pop up on screen...
On Wed, Jun 17, 2009 at 10:04 AM, maven apache<[email protected]> wrote: >>> And if you want to improve the output, then two steps: >>> First use r.category to give a label to each category like so: >>> (assuming the first is black) > > This is what I am not sure, I only get the number respent the category,but I > am not sure what it stand for,for example the number in first line:9321,does > it stand for red? or blue? >>> >>> echo "0:Black" | r.category outss rules=- >>> (note the '-' which means "read from stdin") >>> Next use r.report like so: >>> r.report outss unit=k >>> (gives a table with the cat value, the label and area in sqkm) >> >>> _______________________________________ >>> grass-user mailing list >>> [email protected] >>> http://lists.osgeo.org/mailman/listinfo/grass-user >>> >>> This mail was received via Mail-SeCure System. >>> >>> >> > > > _______________________________________________ > grass-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/grass-user > > _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
