[GRASS-dev] any way to know color assigned to a cell?
Hamish
hamish_nospam at yahoo.com
Thu Apr 19 00:43:06 EDT 2007
Bob Covill wrote:
>
> If you are looking to duplicate d.histogram why not use r.stats? This
> will output raster values with the percent or area which could be used
> for plotting a histogram. If this did work it could be modified to
> output the associated raster color along with the other values. Maybe
> I am missing the point?
In fact d.histogram calls system("r.stats -Cr{c|a}...."); to get the
data it needs for its histogram.
> On a related issues I have used a modified version of r.stats for a
> while now to create equalized color bars for raster maps. You simply
> calculate the distribution over a set number of color breaks, drop a
> custom colortable over the breaks and apply with r.colors rules=.
I've done this many times too, albeit by hand.
Hamish
More information about the grass-dev
mailing list