[GRASS-user] How choosing the colors of an imported map

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Mon Aug 18 11:05:54 EDT 2008


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 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)

> 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>
> 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



More information about the grass-user mailing list