[GRASS-dev] any way to know color assigned to a cell?
peter.loewe at gmx.de
peter.loewe at gmx.de
Thu Apr 19 10:14:37 EDT 2007
Including a "RGB"-flag into r.stats would still be a good thing.
Right now, creating a vector polygon layer with a GRASSRGB-column out of a raster map + colortable needs some manual input or custom shell scripting to set up tthe RGBCOLOR values.
Having a RGB-functionality in r.stats would make this (and other tasks) easier.
Peter
>Bob Covill wrote on 04/18/2007 09:02 PM:
>> On Wed, 2007-04-18 at 17:19 +0100, Glynn Clements wrote:
>>
>>> Bob Covill wrote:
>>>
>>>
>>>>>>> Yeah; we could probably do with a "r.what.colors" module.
>>>>>>>
>>>>> Michael:
>>>>>
>>>>>> I was contemplating a wxPython histograming module, like the TclTk
>>>>>> profiling module, and liked the option in d.histogram of being able >to
>>>>>> use the color table for the histogram colors. But this seems like a
>>>>>> pretty intensive batch of calculations to do it.
>>>>>>
>>>>> you could try "r.profile -c" with a profile which starts and stops at
>>>>> the cell center (length=0). Also it should be very simple to add a >flag
>>>>> just like "r.profile -c" to r.what, if that helps.
>>>>>
>>>> I have a version of r.what that I modified to optionally output RGB
>>>> color. If interested I could commit to CVS?
>>>>
>> I have committed the change to r.what. It now has a "-r" flag (-c was
>> taken) that will output the RGB for the selected point.
>>
>
>I didn't follow this in detail, but with this new -r flag, what is
>r.what.color providing?
>Is there a need to keep it?
>
>Markus (who always has an eye on too similar modules)
--
Dr. Peter Löwe
Diplom-Geograph
<loewe at geomancers.net>
<peter.loewe at gmx.de>
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
More information about the grass-dev
mailing list