I actually did look at previous emails but could not get a definite answer, and also did'nt follow the VRT discussion in earier emails.<br><br>Meanwhile actually, I'm having trouble with using r.out.gdal on even a single image .
<br>My original grass raster has integer values from -262 to 276, and the <a href="http://r.info">r.info</a> output says that its CELL format . So i assumed that the type is Int16, and used the following command:<br><br><span style="color: rgb(204, 0, 0);">
r.out.gdal input=avgtemp1960.1 format=GTiff type=Int16 output=jan1960.tiff createopt=&quot;TFW=YES&quot;</span><br><br>I then imported the output Geotiff into both IDRISI as well as GRASS(using r.in.gdal)<br><br>In both cases, the values are completely different and go from 0 to 32767.
<br><br>Int32 and Float32 options dont work either. Any ideas?<br><br>In my opinion, I find that in general, the documentation for this in Grass as well as Gdal is inadequate. There should be one example for each type of format..
<br><br>And what is the difference between 'Tiles' and 'Bands'?<br><br>Finally, where can i figure out what Int16/32, Float32, Cint16, Cint32&nbsp; - what these things mean?<br><br><br>thanks,<br>vishal<br><br><div><span class="gmail_quote">
On 11/2/06, <b class="gmail_sendername">Hamish</b> &lt;<a href="mailto:hamish_nospam@yahoo.com">hamish_nospam@yahoo.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Vishal Mehta wrote:<br>&gt; Hi all,<br>&gt;<br>&gt; I would like to know how i can export, say, 12 grass rasters (call<br>&gt; them map.1 to map.12) into a single GeoTiff file.<br>&gt; Looks like r.out.gdal allows only one band Geotiff?
<br>&gt; What about gdal_translate? I used gdal_translate to import from Netcdf<br>&gt; to multi-band GeoTiff months ago, but am not sure how it works for<br>&gt; exporting from Grass to multi-band GeoTiff.<br>&gt;<br>&gt; maybe something like :
<br>&gt; gdal_translate -ot Int16 -of GTiff -b 1 -b 2 ... -b 12&nbsp;&nbsp;map.1<br>&gt; map.2...map.12 out.tiff<br>&gt; would the above work?<br>&gt;<br>&gt; if this cannot be done, i need to export into some other multi-band<br>&gt; format - would exporting to Erdas Imagine (.img) format work for
<br>&gt; multi-band?<br><br><br>this was disccussed earlier this year on the mailing lists, you might<br>search for a solution there.<br><br>From memory, using the gdal tools was the current &quot;best&quot; solution, I<br>
think you are very much on the right path.<br><br><br>Hamish<br></blockquote></div><br>