<DIV>Thk u for your answer.</DIV>
<DIV>Yes,they give the same output except Type.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Driver: PNG/Portable Network Graphics<BR>Files: SRTM_GTOPO_u30_n090e060.png<BR>Size is 4800, 6000<BR>Coordinate System is `'<BR>Corner Coordinates:<BR>Upper Left&nbsp; (&nbsp;&nbsp;&nbsp; 0.0,&nbsp;&nbsp;&nbsp; 0.0)<BR>Lower Left&nbsp; (&nbsp;&nbsp;&nbsp; 0.0, 6000.0)<BR>Upper Right ( 4800.0,&nbsp;&nbsp;&nbsp; 0.0)<BR>Lower Right ( 4800.0, 6000.0)<BR>Center&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( 2400.0, 3000.0)<BR>Band 1 Block=4800x1 Type=Byte, ColorInterp=Gray<BR></DIV>
<DIV>1. I want to know that when I should use '-ot Byte ' and when use ' -ot UInt16 '?</DIV>
<DIV>2.&nbsp;when I use&nbsp; -ot UInt16 ',Must I perform histogram equalization on it?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV></DIV><BR>
<BLOCKQUOTE id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">weixj2003ld,<BR><BR>I couldn't open the link.<BR>Try "gdalinfo -mm des.png" on both the output images. I think they will both give the same output. UInt16 should give a dark image unless you perform histogram equalization on it.<BR><BR>
<DIV class="gmail_quote">2010/5/11 weixj2003ld <SPAN dir="ltr">&lt;<A href="mailto:weixj2003ld@163.com">weixj2003ld@163.com</A>&gt;</SPAN><BR>
<BLOCKQUOTE class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>I download a elevation data (SRTM,GTOPO30) from <A href="http://glcfapp.glcf.umd.edu:8080/esdi/index.jsp" target="_blank">http://glcfapp.glcf.umd.edu:8080/esdi/index.jsp</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;use </DIV>
<DIV>gdal_translate -b 1 -of PNG -ot Byte source.tif des.png</DIV>
<DIV>and </DIV>
<DIV>gdal_translate -b 1 -of PNG -ot UInt16 source.tif des.png</DIV>
<DIV>differently,</DIV>
<DIV>with parameter 'UInt16',I get a&nbsp;black picture,with Byte,get a different one,why?</DIV>
<DIV>BTW,I want to get a png file from elevation data(.tif),must I use command gdal_translate?</DIV>
<DIV>Thk u in advance.</DIV>
<DIV>&nbsp;</DIV></BLOCKQUOTE></DIV><BR><BR clear="all"><BR>-- <BR>Best regards,<BR>Chaitanya kumar CH.<BR>/tʃaɪθənjə/ /kʊmɑr/ <BR>+91-9848167848<BR>17.2416N 80.1426E<BR></BLOCKQUOTE><br><br><span title="neteasefooter"/><hr/>
<a href="http://ym.163.com/?from=od3" target="_blank">网易为中小企业免费提供企业邮箱(自主域名)</a>
</span>