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

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>We are trying to convert a 16-bit img into an 8-bit tif. &nbsp;Unfortunately,
the colors appear VERY dark (not downconverted, but just plain dark).&nbsp; I
suspect that this has something to do with the histogram.&nbsp; The gdalinfo of
the original image can be found <a href="http://pastebin.com/cmVxRJyE">here</a>.<o:p></o:p></span></font></p>

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

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>When I tell GDAL to convert straight from 16-bit to 8-bit
with:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>gdal_translate -ot Byte -of GTiff 28jan09_worldview_tucumcari_nm.img
output.tif<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I get what looks like the original image with clouds
covering it&#8230; almost solid white. (See the gdalinfo <a
href="http://pastebin.com/ike52mMp">here</a>)<o:p></o:p></span></font></p>

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

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>When I scale around 16-bits:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>gdal_translate -ot Byte -of GTiff <b><span style='font-weight:
bold'>-scale 0 65535 0 255</span></b> 28jan09_worldview_tucumcari_nm.img
output.tif<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I get a solid black image.&nbsp; (See the gdalinfo <a
href="http://pastebin.com/XpJL6AQY">here</a>)<o:p></o:p></span></font></p>

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

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>When I scale around the extents specified by the histogram:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>gdal_translate -ot Byte -of GTiff <b><span style='font-weight:
bold'>-scale 117 2047</span></b> 0 255 28jan09_worldview_tucumcari_nm.img
output.tif<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I get the dark image described above. (See the gdalinfo <a
href="http://pastebin.com/Ju4azd47">here</a>)<o:p></o:p></span></font></p>

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

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I suspect if we can get GDAL to process and remove the
histogram, we will not have these issues. &nbsp;Any help in doing this or
further diagnosing the issue would be greatly appreciated.<o:p></o:p></span></font></p>

</div>

<font face="monospace"><br>
<br>
<br>
***This e-mail message is intended only for the above named recipient(s)<br>
and may contain information that is sensitive or proprietary. If you have<br>
received this message in error or are not the named recipient(s), please <br>
immediately notify the sender, delete this e-mail message without making<br>
a copy and do not disclose or relay this e-mail message to anyone.***</font></body>

</html>