I Thanks Markus, I didn&#39;t know I could export image groups directly from r.out.gdal. The GUI doesn&#39;t list image groups from the available inputs... I will tell Martin.<div><br></div><div>giovanni<br><br><div class="gmail_quote">
2011/9/19 Markus Metz <span dir="ltr">&lt;<a href="mailto:markus.metz.giswork@googlemail.com">markus.metz.giswork@googlemail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, Sep 19, 2011 at 11:15 AM, G. Allegri &lt;<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>&gt; wrote:<br>
&gt; Thanks Hamish, r.out.tiff did the work. I already had tried it but I failed<br>
&gt; because I dind&#39;t set the region correctly.<br>
&gt; Anyway, setting the -t flag writes the TFW but doesn&#39;t make it a *true*<br>
&gt; GTiff, because r.out.tiff writes a Baseline tiff, without the GTiff tags.<br>
&gt; But that isn&#39;t a problem of course, I can produce a GTiff with another step<br>
&gt; (eg gdal tools).<br>
<br>
</div>You can export a true GTiff with color as cell values instead of<br>
original cell values with<br>
<br>
# extract RGB values<br>
r.mapcalc &quot;mymap.r = r#mymap; mymap.g = g#mymap; mymap.b = b#mymap&quot;<br>
<br>
# create RGB group<br>
i.group group=mymap.rgb in=mymap.r,mymap.g,mymap.b<br>
<br>
# export RGB group<br>
r.out.gdal in=mymap.rgb out=mymap.tif -c<br>
<br>
The -c flag to skip export of the colortable because the raster values<br>
themselves hold the color info.<br>
<br>
Markus M<br>
<div class="im"><br>
&gt; giovanni<br>
&gt;<br>
&gt; 2011/9/17 Hamish &lt;<a href="mailto:hamish_b@yahoo.com">hamish_b@yahoo.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Giovanni wrote:<br>
&gt;&gt; &gt; The question is the object :)I have a Float raster which GRASS<br>
&gt;&gt; &gt; displays with a certain color table (I haven&#39;t set it...<br>
&gt;&gt; &gt; PS: what table is used by default?). What&#39;s the most effective<br>
&gt;&gt; &gt; way to export the raster into a true color Geotiff (as a 3 Byte<br>
&gt;&gt; &gt; bands with color interpretation) using a certain color table?<br>
&gt;&gt;<br>
&gt;&gt; I believe that r.out.tiff will export using colors, not data.<br>
&gt;&gt; Add the -t flag to get a world file &amp; so make it a geotiff.<br>
&gt;&gt;<br>
&gt;&gt; In GRASS 6.4 the d.out.file module is another option, set the<br>
&gt;&gt; size= parameter to the number of rows and columns, and select<br>
&gt;&gt; format=geotiff.<br>
&gt;&gt;<br>
&gt;&gt; The default color table is &quot;rainbow&quot;, see the r.colors help page<br>
&gt;&gt; for details.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hamish<br>
&gt;<br>
&gt;<br>
</div>&gt; _______________________________________________<br>
&gt; grass-user mailing list<br>
&gt; <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br></div>