<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Can anyone tell me why the option 'STATISTICS=YES' works when using
gdal_translate to translate from TIF to HFA (Erdas Imagine), but
will NOT work when using gdal_merge to stack multiple TIFs into HFA?
I need ArcMap to read the statistics, but it doesnt seem that they
are being written to the file. I find this strange because ArcMap
can identify the Stats when an HFA image is created with
gdal_translate.<br>
<br>
I am using GDAL version 1.7.3<br>
<br>
Here is an example of the code I am using:<br>
<br>
gdal_merge -o "output.img" -of HFA -co STATISTICS=YES -co
FORCETOPESTRING=YES -separate -v "image1.tif" "image2.tif"
"image3.tif"<br>
<br>
gdal_translate -of HFA -co STATISTICS=YES -co FORCETOPESTRING=YES
"image1.tif" "image1.img"<br>
<br>
Thanks for any advise.<br>
<br>
Matt <br>
<div class="moz-signature">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<title></title>
<div class="Section1">
<p class="MsoNormal"><font color="#666666"><b style=""><span
style="font-size: 10pt; font-family: Tahoma;">Matt
Hanneman</span></b><span style="font-size: 10pt;
font-family: Tahoma;"><br>
</span><st1:stockticker><span style="font-size: 9pt;
font-family: Tahoma;">Director of GIS</span></st1:stockticker><span
style="font-size: 9pt; font-family: Tahoma;"> and Remote
Sensing<br>
Global Forest Watch Canada<br>
10337 146 St, Edmonton, AB T5N 3A3<br>
Tel: 780-422-5989 Fax: 780-454-5521 <br>
<a moz-do-not-send="true"
href="http://www.globalforestwatch.ca/">www.globalforestwatch.ca</a></span></font></p>
</div>
<div class="moz-signature">
<div class="moz-signature">
<div class="moz-signature">
<link rel="File-List"
href="x-msg://3459/Matt@GFW_files/filelist.xml">
<o:smarttagtype
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="stockticker">
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>Matt Hanneman</o:Author>
<o:LastAuthor>Matt Hanneman</o:LastAuthor>
<o:Revision>5</o:Revision>
<o:TotalTime>2</o:TotalTime>
<o:Created>2007-09-04T20:16:00Z</o:Created>
<o:LastSaved>2008-06-26T17:13:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>33</o:Words>
<o:Characters>191</o:Characters>
<o:Company>Global Forest Watch Canada</o:Company>
<o:Lines>1</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>223</o:CharactersWithSpaces>
<o:Version>10.6839</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if !mso]><object
classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object>
<style>
st1\:*{behavior:url(#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]--></o:smarttagtype>
<div class="Section1">
<p class="MsoNormal"><b style=""><span style="font-size:
10pt; font-family: Tahoma;"></span></b><span
style="font-size: 9pt; font-family: Tahoma;"><br>
</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>