<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
p.section1, li.section1, div.section1
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-GB link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>r.out.tiff &#8211;p writes a 24-bit raster
to an 8-bit tiff with palette (colour table).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>So via bash you could import into grass
then export using above command. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=section1 style='margin:0cm;margin-bottom:.0001pt'><font size=3
color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'>Gavin
</span></font><o:p></o:p></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span lang=EN-US style='font-size:12.0pt;
color:windowtext'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span lang=EN-US style='font-size:10.0pt;
font-family:Tahoma;color:windowtext'> africa-bounces@lists.osgeo.org
[mailto:africa-bounces@lists.osgeo.org] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Zoltan Szecsei<br>
<b><span style='font-weight:bold'>Sent:</span></b> 2009 November 12 01:02<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">tim@linfiniti.com</st1:PersonName>;
<st1:PersonName w:st="on">Africa local chapter discussions</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [OSGeo Africa]
Converting TIFF image planes</span></font><font color=black><span lang=EN-US
style='color:windowtext'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>Hi Tim,<br>
I have a RGB-ised satellite image we are digitising from, but our (oldish)
software displays it as a red image.<br>
I fiddled around using tiffinfo on other images that display correctly with
this software, and noticed the difference in the Planar Configuration. (Which
also explains why we only see the red)<br>
Our Windows based R2V package allowed the conversion (which then displays
correctly in our Linux package), but I am looking for something to do this
conversion via a Linux bash script - and to make minimum or no other changes to
the Tiff image.<br>
<br>
Regards,<br>
Zoltan<br>
<br>
Got image:<br>
<br>
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>zls@gl0:/home/gisprojects$ tiffinfo P001.TIF<br>
TIFF Directory at offset 0x150e1684<br>
&nbsp; Image Width: 12405 Image Length: 9475<br>
&nbsp; Bits/Sample: 8<br>
&nbsp; Sample Format: unsigned integer<br>
&nbsp; Compression Scheme: None<br>
&nbsp; Photometric Interpretation: RGB color<br>
&nbsp; Image Description: &quot;{\n&nbsp; bandList = \n&nbsp;
[\n&nbsp;&nbsp;&nbsp; 3;\n&nbsp;&nbsp;&nbsp; 2;\n&nbsp;&nbsp;&nbsp; 1;\n&nbsp;
]\n}&quot;<br>
&nbsp; Orientation: row 0 top, col 0 lhs<br>
&nbsp; Samples/Pixel: 3<br>
&nbsp; Rows/Strip: 84<br>
&nbsp; Min Sample Value: 0<br>
&nbsp; Max Sample Value: 255<br>
&nbsp; Planar Configuration: separate image planes<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>But need as above, but with Planar Config as below::<br>
<br>
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'>zls@gl0:/home/gisprojects/t4a/images/gurue$ tiffinfo
P002.TIF <br>
TIFF Directory at offset 0x4458bf8<br>
&nbsp; Subfile Type: (0 = 0x0)<br>
&nbsp; Image Width: 12405 Image Length: 9475<br>
&nbsp; Resolution: 0, 0 pixels/inch<br>
&nbsp; Bits/Sample: 8<br>
&nbsp; Compression Scheme: PackBits<br>
&nbsp; Photometric Interpretation: palette color (RGB from colormap)<br>
&nbsp; Artist: &quot;R2V for Windows&quot;<br>
&nbsp; Host Computer: &quot;PC/MS WINDOWS&quot;<br>
&nbsp; Make: &quot;Able Software Corp.&quot;<br>
&nbsp; Samples/Pixel: 1<br>
&nbsp; Rows/Strip: 1<br>
&nbsp;</span></font><font color=red><span style='color:red'> Planar
Configuration: single image plane</span></font><br>
&nbsp; Color Map: (present)<o:p></o:p></p>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><br>
<br>
<br>
<br>
Tim Sutton wrote: <o:p></o:p></span></font></p>

<pre wrap=""><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>Hi<o:p></o:p></span></font></pre><pre><font size=2
color=black face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Do you mean you want to copy from a palletted tiff to an e.g. Single band greyscale tif? Or three bands each representing R, B, G? Bearing in mind that you will lose the colour info, you could do this using gdal_translate.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Regards<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Tim<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>------Original Message------<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>From: Zoltan Szecsei<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Sender: <a
href="mailto:africa-bounces@lists.osgeo.org">africa-bounces@lists.osgeo.org</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>To: <a
href="mailto:africa@lists.osgeo.org">africa@lists.osgeo.org</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>ReplyTo: <st1:PersonName
w:st="on"><st1:place w:st="on">Africa</st1:place> local chapter discussions</st1:PersonName><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Subject: [OSGeo Africa] Converting TIFF image planes<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Sent: Nov 12, 2009 10:35 AM<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Hi,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>I've had a look at some of the Linux tiff tools (eg tiffcp) but cannot <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>find a way to command-line convert an RGB tiff image from separate image <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>planes, to a single image plane.<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Does anyone have any pointers, please?<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Thanks &amp; regards,<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Zoltan<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre><pre
wrap=""><font size=2 color=black face="Courier New"><span style='font-size:
10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre style='text-align:center'><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>

<hr size=4 width="90%" align=center>

</span></font></pre><pre><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>_______________________________________________<o:p></o:p></span></font></pre><pre><st1:place
w:st="on"><font size=2 color=black face="Courier New"><span style='font-size:
 10.0pt'>Africa</span></font></st1:place> mailing list<o:p></o:p></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a
href="mailto:Africa@lists.osgeo.org">Africa@lists.osgeo.org</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a
href="http://lists.osgeo.org/mailman/listinfo/africa">http://lists.osgeo.org/mailman/listinfo/africa</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>  <o:p></o:p></span></font></pre>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><br>
<br>
<br>
<o:p></o:p></span></font></p>

<pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>-- <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>===========================================<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Zoltan Szecsei<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Director<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Geograph (Pty) Ltd.<o:p></o:p></span></font></pre><pre><st1:address
w:st="on"><st1:Street w:st="on"><font size=2 color=black face="Courier New"><span
  style='font-size:10.0pt'>P.O. Box</span></font></st1:Street> 7</st1:address>, Muizenberg 7950, <st1:country-region
w:st="on"><st1:place w:st="on">South Africa</st1:place></st1:country-region>.<o:p></o:p></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><st1:Street
w:st="on"><st1:address w:st="on"><font size=2 color=black face="Courier New"><span
  style='font-size:10.0pt'>65 Main Road</span></font></st1:address></st1:Street>, Muizenberg 7945<o:p></o:p></pre><pre><st1:State
w:st="on"><font size=2 color=black face="Courier New"><span style='font-size:
 10.0pt'>Western Cape</span></font></st1:State>, <st1:country-region w:st="on"><st1:place
 w:st="on">South Africa</st1:place></st1:country-region>.  <o:p></o:p></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>34° 6'16.35&quot;S 18°28'5.62&quot;E <o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Tel: +27-21-7884897  <st1:City
w:st="on"><st1:place w:st="on">Mobile</st1:place></st1:City>: +27-83-6004028<o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Fax: +27-86-6115323    <a
href="http://www.geograph.co.za">www.geograph.co.za</a><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>===========================================<o:p></o:p></span></font></pre></div>


This message is intended for the addressee only.Information and 
attachments in this e-mail may contain confidential, proprietary, or legally 
privileged information. <BR>If you are not the intended recipient, or 
responsible for delivery of the message to the intended recipient, any 
disclosure, copying, distribution, or any action taken is prohibited and may be 
unlawful, and could result in a claim against you.
</body>

</html>