<br><br><div class="gmail_quote">On Thu, May 30, 2013 at 4:46 PM, Jukka Rahkonen <span dir="ltr"><<a href="mailto:jukka.rahkonen@mmmtike.fi" target="_blank">jukka.rahkonen@mmmtike.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Jonathan Greenberg <jgrn <at> <a href="http://illinois.edu" target="_blank">illinois.edu</a>> writes:<br>
<br>
><br>
> Folks:<br>
> I'm using a Windows install of GDAL 1.7.0 (FWTools) -- when I run:<br>
><br>
> gdal_translate -sds -of "GTiff" [some.hdf] "myoutput"<br>
> The output filenames do not have the .tif extension. If I set the output<br>
file to "myoutput.tif", it appends the "layer numbers" to the end of the<br>
file, e.g. myoutput.tif1. Any tricks to getting the naming working properly<br>
(myoutput1.tif would be what I'd expect)?<br>
<br>
</div>Hi,<br>
<br>
First, acquire more fresh GDAL, current version is 1.10. Use OSGeo4W or<br>
download Windows binaries from <a href="http://gisinternals.com/sdk/" target="_blank">http://gisinternals.com/sdk/</a></blockquote><div><br></div><div>actually the same thing happens with gdal-1.10. I will prepare a bug report and fix.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Then, perhaps you should use gdalinfo first for seeing the exact names of<br>
layers as GDAL understands them and use such a layer name as input instead<br>
of [some.hdf]. Read usage examples from <a href="http://www.gdal.org/frmt_hdf4.html" target="_blank">http://www.gdal.org/frmt_hdf4.html</a></blockquote><div><br></div><div>the idea of using the -sds argument is to generate an output file for each subdataset, without having to search for subdataset names</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
-Jukka Rahkonen-<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div><br>