On Aug 18, 2008, at 9:00 AM, <[EMAIL PROTECTED]> wrote:
Date: Mon, 18 Aug 2008 18:05:54 +0300
From: Nikos Alexandris <[EMAIL PROTECTED]>
Subject: Re: [GRASS-user] How choosing the colors of an imported map
To: Paul Moen <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
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
cat=1
v.surf.rst [EMAIL PROTECTED] layer=1 zcolumn=dbl_3 tension=40. elev=
$RasName2 dmax=100 dmin=1
r.colors [EMAIL PROTECTED] color=arb-precip
Based on your commands [EMAIL PROTECTED] 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.
Michael
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" <[EMAIL PROTECTED]>
wrote:
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?
Roberto
Kind regards, Nikos
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev