[GRASS-dev] color tables

Helena Mitasova hmitaso at unity.ncsu.edu
Wed Aug 26 21:22:16 EDT 2009


On Aug 26, 2009, at 2:22 AM, Hamish wrote:

> Helena wrote:
>> I often get a question why there aren't images of color tables
>> in GRASS GUI along with their names. Is this technically feasible?
>> Or it is already there and I just don't see it?
>
> I don't think it's there.
>
>> I am thinking about adding them to the r.colors man page, but first I
>
> IMhO these sorts of things should go in the wiki, not the man page.
> Anything but simple PNG figures add a huge amount to the bulk of the
> SVN and .tar.gz release sizes.

I had in mind something that is on hand directly from the GUI -
best would be in the drop-down menu which currently lists the color  
tables by name,
but if that is not supported by the wxpython, man page would do as  
well because it
is accessible from the command's gui.
The images are tiny, they take very little space - I had in mind  
something like this
(I should have put it into the Description section, but you get the  
idea)
http://skagit.meas.ncsu.edu/~helena/grasswork/grasscontrib/r.colors.html
this just uses your rescaled png images.

Same would be handy for the point symbols - they are pretty difficult  
to find on wiki
if you don't know where they are. If this cannot go into the man  
page, adding
a link to the wiki page on man page would certainly help.
>
>> would like to ask whether somebody has done this already (or has a
>> script to do it).
>> I was thinking about running something like this through all color
>> tables
>>
>> set GRASS_WIDTH=50 and GRASS_HEIGHT=100
>> r.colors elev co=ryg
>> d.colortable elev
>> d.out.file ryg_col
>> d.erase
>> convert -rotate 90 ryg_col
>
> I have made a little script which does the trick, I'll post it to
> the wiki shortly at  http://grass.osgeo.org/wiki/Raster_color_tables

that was ultrafast! Thanks a lot - even that helps,

Helena
>
>
> Hamish
>
>
>
>
>



More information about the grass-dev mailing list