<HTML>
<HEAD>
<TITLE>Re: [GRASS-user] How choosing the colors of an imported map</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I am doing exactly that with the following script.<BR>
<BR>
v.in.ascii input=textFile output=$RasName fs='tab' x=3 y=4 skip=0 cat=1<BR>
v.surf.rst input=RasName@Temp layer=1 zcolumn=dbl_3 tension=40. elev=$RasName2 dmax=100 dmin=1<BR>
r.colors map=RasName@Temp color=arb-precip<BR>
<BR>
Of course, your parameters for the commands above would be different based on what you are importing.<BR>
<BR>
arb-precip is a custom colormap that I created and placed in $GIDBASE/etc/colors which looks like<BR>
<BR>
-20 128 64 0<BR>
0.058823529 128 64 0<BR>
0.117647059 136 68 0<BR>
0.176470588 144 72 0<BR>
0.235294118 152 76 0<BR>
0.294117647 160 80 0<BR>
0.352941176 168 84 0<BR>
0.411764706 176 88 0<BR>
0.470588235 184 92 0<BR>
0.529411765 192 96 0<BR>
0.588235294 199 100 0<BR>
0.647058824 207 104 0<BR>
0.705882353 215 108 0<BR>
0.764705882 223 112 0<BR>
0.823529412 231 116 0<BR>
0.882352941 239 120 0<BR>
0.941176471 247 124 0<BR>
1 255 128 0<BR>
1.058823529 255 128 0<BR>
1.117647059 254 136 1<BR>
1.176470588 253 143 2<BR>
1.235294118 252 151 3<BR>
1.294117647 252 158 3<BR>
1.352941176 251 166 4<BR>
1.411764706 251 174 4<BR>
1.470588235 251 182 4<BR>
1.529411765 251 189 4<BR>
1.588235294 251 197 4<BR>
1.647058824 251 205 4<BR>
1.705882353 251 213 4<BR>
1.764705882 252 221 3<BR>
1.823529412 252 230 3<BR>
1.882352941 253 238 2<BR>
1.941176471 254 246 1<BR>
2 255 255 0<BR>
2.058823529 255 255 0<BR>
2.117647059 251 255 0<BR>
2.176470588 247 255 0<BR>
2.235294118 242 254 1<BR>
2.294117647 238 254 1<BR>
2.352941176 234 254 1<BR>
2.411764706 230 254 1<BR>
2.470588235 226 254 1<BR>
2.529411765 222 254 1<BR>
2.588235294 218 254 1<BR>
2.647058824 214 254 1<BR>
2.705882353 210 254 1<BR>
2.764705882 206 254 1<BR>
2.823529412 203 254 1<BR>
2.882352941 199 255 0<BR>
2.941176471 195 255 0<BR>
3 191 255 0<BR>
3.058823529 191 255 0<BR>
3.117647059 187 255 0<BR>
3.176470588 183 255 0<BR>
3.235294118 179 254 1<BR>
3.294117647 175 254 1<BR>
3.352941176 171 254 1<BR>
3.411764706 167 254 1<BR>
3.470588235 163 254 1<BR>
3.529411765 159 254 1<BR>
3.588235294 155 254 1<BR>
3.647058824 151 254 1<BR>
3.705882353 147 254 1<BR>
3.764705882 144 254 1<BR>
3.823529412 140 254 1<BR>
3.882352941 136 255 0<BR>
3.941176471 132 255 0<BR>
4 128 255 0<BR>
4.058823529 128 255 0<BR>
4.117647059 120 254 1<BR>
4.176470588 113 253 2<BR>
4.235294118 105 252 3<BR>
4.294117647 97 252 3<BR>
4.352941176 90 251 4<BR>
4.411764706 82 251 4<BR>
4.470588235 74 251 4<BR>
4.529411765 66 251 4<BR>
4.588235294 58 251 4<BR>
4.647058824 50 251 4<BR>
4.705882353 42 251 4<BR>
4.764705882 34 252 3<BR>
4.823529412 26 252 3<BR>
4.882352941 17 253 2<BR>
4.941176471 9 254 1<BR>
5 0 255 0<BR>
5.058823529 0 255 0<BR>
5.117647059 0 251 0<BR>
5.176470588 0 247 0<BR>
5.235294118 0 243 0<BR>
5.294117647 0 239 0<BR>
5.352941176 0 235 0<BR>
5.411764706 0 231 0<BR>
5.470588235 0 227 0<BR>
5.529411765 0 223 0<BR>
5.588235294 0 219 0<BR>
5.647058824 0 215 0<BR>
5.705882353 0 211 0<BR>
5.764705882 0 207 0<BR>
5.823529412 0 203 0<BR>
5.882352941 0 199 0<BR>
5.941176471 0 195 0<BR>
6 0 191 0<BR>
6.058823529 0 191 0<BR>
6.117647059 0 187 0<BR>
6.176470588 0 183 0<BR>
6.235294118 0 179 0<BR>
6.294117647 0 175 0<BR>
6.352941176 0 171 0<BR>
6.411764706 0 167 0<BR>
6.470588235 0 163 0<BR>
6.529411765 0 160 0<BR>
6.588235294 0 156 0<BR>
6.647058824 0 152 0<BR>
6.705882353 0 148 0<BR>
6.764705882 0 144 0<BR>
6.823529412 0 140 0<BR>
6.882352941 0 136 0<BR>
6.941176471 0 132 0<BR>
7 0 128 0<BR>
7.058823529 0 128 0<BR>
7.117647059 4 132 17<BR>
7.176470588 7 137 33<BR>
7.235294118 9 143 49<BR>
7.294117647 10 150 64<BR>
7.352941176 11 156 80<BR>
7.411764706 12 164 95<BR>
7.470588235 12 172 111<BR>
7.529411765 11 180 126<BR>
7.588235294 11 189 142<BR>
7.647058824 10 198 158<BR>
7.705882353 8 207 174<BR>
7.764705882 7 216 190<BR>
7.823529412 6 226 206<BR>
7.882352941 4 235 222<BR>
7.941176471 2 245 238<BR>
8 0 255 255<BR>
8.058823529 0 255 255<BR>
8.117647059 0 251 255<BR>
8.176470588 0 247 255<BR>
8.235294118 1 242 254<BR>
8.294117647 1 238 254<BR>
8.352941176 1 234 254<BR>
8.411764706 1 230 254<BR>
8.470588235 1 226 254<BR>
8.529411765 1 222 254<BR>
8.588235294 1 218 254<BR>
8.647058824 1 214 254<BR>
8.705882353 1 210 254<BR>
8.764705882 1 206 254<BR>
8.823529412 1 203 254<BR>
8.882352941 0 199 255<BR>
8.941176471 0 195 255<BR>
9 0 191 255<BR>
9.058823529 0 191 255<BR>
9.117647059 0 187 255<BR>
9.176470588 0 183 255<BR>
9.235294118 1 179 254<BR>
9.294117647 1 175 254<BR>
9.352941176 1 171 254<BR>
9.411764706 1 167 254<BR>
9.470588235 1 163 254<BR>
9.529411765 1 159 254<BR>
9.588235294 1 155 254<BR>
9.647058824 1 151 254<BR>
9.705882353 1 147 254<BR>
9.764705882 1 144 254<BR>
9.823529412 1 140 254<BR>
9.882352941 0 136 255<BR>
9.941176471 0 132 255<BR>
10 0 128 255<BR>
10.05882353 0 128 255<BR>
10.11764706 0 126 255<BR>
10.17647059 0 124 255<BR>
10.23529412 0 122 255<BR>
10.29411765 0 120 255<BR>
10.35294118 0 118 255<BR>
10.41176471 0 116 255<BR>
10.47058824 0 114 255<BR>
10.52941176 0 112 255<BR>
10.58823529 0 110 255<BR>
10.64705882 0 108 255<BR>
10.70588235 0 106 255<BR>
10.76470588 0 104 255<BR>
10.82352941 0 102 255<BR>
10.88235294 0 100 255<BR>
10.94117647 0 98 255<BR>
11 0 96 255<BR>
11.05882353 0 96 255<BR>
11.11764706 0 94 255<BR>
11.17647059 0 92 255<BR>
11.23529412 0 90 255<BR>
11.29411765 0 88 255<BR>
11.35294118 0 86 255<BR>
11.41176471 0 84 255<BR>
11.47058824 0 82 255<BR>
11.52941176 0 80 255<BR>
11.58823529 0 78 255<BR>
11.64705882 0 76 255<BR>
11.70588235 0 74 255<BR>
11.76470588 0 72 255<BR>
11.82352941 0 70 255<BR>
11.88235294 0 68 255<BR>
11.94117647 0 66 255<BR>
12 0 64 255<BR>
12.05882353 0 64 255<BR>
12.11764706 0 60 255<BR>
12.17647059 0 56 255<BR>
12.23529412 1 52 254<BR>
12.29411765 1 49 254<BR>
12.35294118 1 45 254<BR>
12.41176471 1 41 254<BR>
12.47058824 1 37 254<BR>
12.52941176 1 33 254<BR>
12.58823529 1 29 254<BR>
12.64705882 1 25 254<BR>
12.70588235 1 21 254<BR>
12.76470588 1 17 254<BR>
12.82352941 1 13 254<BR>
12.88235294 0 8 255<BR>
12.94117647 0 4 255<BR>
13 0 0 255<BR>
100 0 0 255<BR>
<BR>
<BR>
<BR>
On 8/16/08 6:41 AM, "roberto caselli" <<a href="roberto.caselli@yahoo.it">roberto.caselli@yahoo.it</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hello everyone,<BR>
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?<BR>
<BR>
Roberto<BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="1" WIDTH="100%">Posta, news, sport, oroscopo: tutto in una sola pagina<BR>
Crea l'home page che piace a te! <<a href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52437/*http://www.yahoo.it/latuapagina">http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52437/*http://www.yahoo.it/latuapagina</a>> .<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
grass-user mailing list<BR>
<a href="grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><BR>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Paul T. Moen<BR>
<a href="pmoen@nd.gov">pmoen@nd.gov</a><BR>
701-328-2434<BR>
701-328-3696 (fax)<BR>
ND State Water Commission<BR>
</SPAN></FONT>
</BODY>
</HTML>