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

Paul Moen pmoen at nd.gov
Mon Aug 18 10:34:33 EDT 2008


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

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
0.117647059 136 68 0
0.176470588 144 72 0
0.235294118 152 76 0
0.294117647 160 80 0
0.352941176 168 84 0
0.411764706 176 88 0
0.470588235 184 92 0
0.529411765 192 96 0
0.588235294 199 100 0
0.647058824 207 104 0
0.705882353 215 108 0
0.764705882 223 112 0
0.823529412 231 116 0
0.882352941 239 120 0
0.941176471 247 124 0
1 255 128 0
1.058823529 255 128 0
1.117647059 254 136 1
1.176470588 253 143 2
1.235294118 252 151 3
1.294117647 252 158 3
1.352941176 251 166 4
1.411764706 251 174 4
1.470588235 251 182 4
1.529411765 251 189 4
1.588235294 251 197 4
1.647058824 251 205 4
1.705882353 251 213 4
1.764705882 252 221 3
1.823529412 252 230 3
1.882352941 253 238 2
1.941176471 254 246 1
2 255 255 0
2.058823529 255 255 0
2.117647059 251 255 0
2.176470588 247 255 0
2.235294118 242 254 1
2.294117647 238 254 1
2.352941176 234 254 1
2.411764706 230 254 1
2.470588235 226 254 1
2.529411765 222 254 1
2.588235294 218 254 1
2.647058824 214 254 1
2.705882353 210 254 1
2.764705882 206 254 1
2.823529412 203 254 1
2.882352941 199 255 0
2.941176471 195 255 0
3 191 255 0
3.058823529 191 255 0
3.117647059 187 255 0
3.176470588 183 255 0
3.235294118 179 254 1
3.294117647 175 254 1
3.352941176 171 254 1
3.411764706 167 254 1
3.470588235 163 254 1
3.529411765 159 254 1
3.588235294 155 254 1
3.647058824 151 254 1
3.705882353 147 254 1
3.764705882 144 254 1
3.823529412 140 254 1
3.882352941 136 255 0
3.941176471 132 255 0
4 128 255 0
4.058823529 128 255 0
4.117647059 120 254 1
4.176470588 113 253 2
4.235294118 105 252 3
4.294117647 97 252 3
4.352941176 90 251 4
4.411764706 82 251 4
4.470588235 74 251 4
4.529411765 66 251 4
4.588235294 58 251 4
4.647058824 50 251 4
4.705882353 42 251 4
4.764705882 34 252 3
4.823529412 26 252 3
4.882352941 17 253 2
4.941176471 9 254 1
5 0 255 0
5.058823529 0 255 0
5.117647059 0 251 0
5.176470588 0 247 0
5.235294118 0 243 0
5.294117647 0 239 0
5.352941176 0 235 0
5.411764706 0 231 0
5.470588235 0 227 0
5.529411765 0 223 0
5.588235294 0 219 0
5.647058824 0 215 0
5.705882353 0 211 0
5.764705882 0 207 0
5.823529412 0 203 0
5.882352941 0 199 0
5.941176471 0 195 0
6 0 191 0
6.058823529 0 191 0
6.117647059 0 187 0
6.176470588 0 183 0
6.235294118 0 179 0
6.294117647 0 175 0
6.352941176 0 171 0
6.411764706 0 167 0
6.470588235 0 163 0
6.529411765 0 160 0
6.588235294 0 156 0
6.647058824 0 152 0
6.705882353 0 148 0
6.764705882 0 144 0
6.823529412 0 140 0
6.882352941 0 136 0
6.941176471 0 132 0
7 0 128 0
7.058823529 0 128 0
7.117647059 4 132 17
7.176470588 7 137 33
7.235294118 9 143 49
7.294117647 10 150 64
7.352941176 11 156 80
7.411764706 12 164 95
7.470588235 12 172 111
7.529411765 11 180 126
7.588235294 11 189 142
7.647058824 10 198 158
7.705882353 8 207 174
7.764705882 7 216 190
7.823529412 6 226 206
7.882352941 4 235 222
7.941176471 2 245 238
8 0 255 255
8.058823529 0 255 255
8.117647059 0 251 255
8.176470588 0 247 255
8.235294118 1 242 254
8.294117647 1 238 254
8.352941176 1 234 254
8.411764706 1 230 254
8.470588235 1 226 254
8.529411765 1 222 254
8.588235294 1 218 254
8.647058824 1 214 254
8.705882353 1 210 254
8.764705882 1 206 254
8.823529412 1 203 254
8.882352941 0 199 255
8.941176471 0 195 255
9 0 191 255
9.058823529 0 191 255
9.117647059 0 187 255
9.176470588 0 183 255
9.235294118 1 179 254
9.294117647 1 175 254
9.352941176 1 171 254
9.411764706 1 167 254
9.470588235 1 163 254
9.529411765 1 159 254
9.588235294 1 155 254
9.647058824 1 151 254
9.705882353 1 147 254
9.764705882 1 144 254
9.823529412 1 140 254
9.882352941 0 136 255
9.941176471 0 132 255
10 0 128 255
10.05882353 0 128 255
10.11764706 0 126 255
10.17647059 0 124 255
10.23529412 0 122 255
10.29411765 0 120 255
10.35294118 0 118 255
10.41176471 0 116 255
10.47058824 0 114 255
10.52941176 0 112 255
10.58823529 0 110 255
10.64705882 0 108 255
10.70588235 0 106 255
10.76470588 0 104 255
10.82352941 0 102 255
10.88235294 0 100 255
10.94117647 0 98 255
11 0 96 255
11.05882353 0 96 255
11.11764706 0 94 255
11.17647059 0 92 255
11.23529412 0 90 255
11.29411765 0 88 255
11.35294118 0 86 255
11.41176471 0 84 255
11.47058824 0 82 255
11.52941176 0 80 255
11.58823529 0 78 255
11.64705882 0 76 255
11.70588235 0 74 255
11.76470588 0 72 255
11.82352941 0 70 255
11.88235294 0 68 255
11.94117647 0 66 255
12 0 64 255
12.05882353 0 64 255
12.11764706 0 60 255
12.17647059 0 56 255
12.23529412 1 52 254
12.29411765 1 49 254
12.35294118 1 45 254
12.41176471 1 41 254
12.47058824 1 37 254
12.52941176 1 33 254
12.58823529 1 29 254
12.64705882 1 25 254
12.70588235 1 21 254
12.76470588 1 17 254
12.82352941 1 13 254
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
> 
>  
> 
> Posta, news, sport, oroscopo: tutto in una sola pagina
>  Crea l'home page che piace a te!
> <http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/ev
> t=52437/*http://www.yahoo.it/latuapagina> .
> 
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user

Paul T. Moen
pmoen at nd.gov
701-328-2434
701-328-3696 (fax)
ND State Water Commission

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20080818/c08b3537/attachment-0001.html


More information about the grass-user mailing list