[GRASS-dev] Re: [GRASS-user] How choosing the colors of an imported
michael.barton at asu.edu
Mon Aug 18 12:44:59 EDT 2008
On Aug 18, 2008, at 9:00 AM, <grass-user-request at lists.osgeo.org> wrote:
> Date: Mon, 18 Aug 2008 18:05:54 +0300
> From: Nikos Alexandris <nikos.alexandris at felis.uni-freiburg.de>
> Subject: Re: [GRASS-user] How choosing the colors of an imported map
> To: Paul Moen <pmoen at nd.gov>
> Cc: grass-user at lists.osgeo.org
> Message-ID: <1219071954.26438.11.camel at vertical>
> Content-Type: text/plain
> On Mon, 2008-08-18 at 09:34 -0500, Paul Moen wrote:
>> I am doing exactly that with the following script.
>> v.in.ascii input=textFile output=$RasName fs='tab' x=3 y=4 skip=0
>> v.surf.rst input=RasName at Temp layer=1 zcolumn=dbl_3 tension=40. elev=
>> $RasName2 dmax=100 dmin=1
>> r.colors map=RasName at Temp color=arb-precip
> Based on your commands RasName at Temp is a vector map and not a raster,
> therefore r.colors won't work on it.
> Your raster is the RasName2 map (output of v.surf.rst)
FYI, I just committed a new interactive color management module to the
wxPython GUI code this weekend (in both develbranch_6 [GRASS 6.4] and
trunk [GRASS 7]).
It allows you to set colors for rasters by entering cat values or
percents and clicking a color chooser button. There is a preview
window that allows you to fine tune your color table.
It also allows you to set colors for an rgb_column in vectors (areas
only AIUI) by entering attribute values or ranges and clicking a color
chooser button. The preview window also shows vector areas colored in
this way for fine tuning.
>> Of course, your parameters for the commands above would be different
>> based on what you are importing.
>> arb-precip is a custom colormap that I created and placed in
>> $GIDBASE/etc/colors which looks like
>> -20 128 64 0
>> 0.058823529 128 64 0
>> 12.88235294 0 8 255
>> 12.94117647 0 4 255
>> 13 0 0 255
>> 100 0 0 255
>> On 8/16/08 6:41 AM, "roberto caselli" <roberto.caselli at yahoo.it>
>> Hello everyone,
>> I have an ascii file that I want to import using r.in.ascii to
>> obtain a raster map. Is it possible to choose the colors of
>> the ranges of the values in the ascii file?
> Kind regards, Nikos
More information about the grass-dev