<br><font size=2 face="sans-serif">Naresh,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; One
more item, not really FWTools related, but I found it very interesting
that Mirone, as a Matlab code-base, is released via a svn but also compiled.
It might be something for you to think about also.</font>
<br>
<br><font size=2 face="sans-serif">-Trent</font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Trent M Hare &lt;thare@usgs.gov&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">fwtools@lists.maptools.org</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">08/10/2009 01:28 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [FWTools] gdal_translate</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Sent by:</font>
<td><font size=1 face="sans-serif">fwtools-bounces@lists.maptools.org</font></table>
<br>
<hr noshade>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Naresh,</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;You might take a look at an application, called
Mirone, that is an excellent marriage of Matlab, GDAL (and GMT). You may
not need to convert to tiff and just use the ESRI Grid directly for Matlab.
</font><a href=http://w3.ualg.pt/~jluis/mirone/><font size=2 color=blue face="sans-serif"><u>http://w3.ualg.pt/~jluis/mirone/</u></font></a><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
For your issue, make sure you are pointing at the correct *.adf file. e.g.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
&gt;gdal_translate hrus1\w001001.adf out.tif</font><font size=3> </font><font size=2 face="sans-serif"><br>
which worked for me.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Regards,</font><font size=3> </font><font size=2 face="sans-serif"><br>
Trent</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
And you file looks fine as shown by gdalinfo</font><font size=3> </font><tt><font size=2><br>
&gt;gdalinfo hrus1\w001001.adf</font></tt><font size=3> </font><tt><font size=2><br>
Driver: AIG/Arc/Info Binary Grid</font></tt><font size=3> </font><tt><font size=2><br>
Files: hrus1</font></tt><font size=3> </font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; hrus1.aux</font></tt><font size=3> </font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; hrus1.rrd</font></tt><font size=3> </font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; hrus1\dblbnd.adf</font></tt><font size=3> </font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; hrus1\hdr.adf</font></tt><font size=3> </font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; hrus1\metadata.xml</font></tt><font size=3> </font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; hrus1\prj.adf</font></tt><font size=3> </font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; hrus1\sta.adf</font></tt><font size=3> </font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; hrus1\vat.adf</font></tt><font size=3> </font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; hrus1\w001001.adf</font></tt><font size=3> </font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; hrus1\w001001x.adf</font></tt><font size=3> </font><tt><font size=2><br>
Size is 3930, 6138</font></tt><font size=3> </font><tt><font size=2><br>
Coordinate System is:</font></tt><font size=3> </font><tt><font size=2><br>
PROJCS[&quot;UTM Zone 15, Northern Hemisphere&quot;,</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp;GEOGCS[&quot;NAD83&quot;,</font></tt><font size=3> </font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; &nbsp;DATUM[&quot;North_American_Datum_1983&quot;,</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SPHEROID[&quot;GRS 1980&quot;,6378137,298.257222101,</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AUTHORITY[&quot;EPSG&quot;,&quot;7019&quot;]],</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TOWGS84[0,0,0,0,0,0,0],</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AUTHORITY[&quot;EPSG&quot;,&quot;6269&quot;]],</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; &nbsp;PRIMEM[&quot;Greenwich&quot;,0,</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]],</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; &nbsp;UNIT[&quot;degree&quot;,0.0174532925199433,</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AUTHORITY[&quot;EPSG&quot;,&quot;9108&quot;]],</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; &nbsp;AXIS[&quot;Lat&quot;,NORTH],</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; &nbsp;AXIS[&quot;Long&quot;,EAST],</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp; &nbsp; &nbsp;AUTHORITY[&quot;EPSG&quot;,&quot;4269&quot;]],</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp;PROJECTION[&quot;Transverse_Mercator&quot;],</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp;PARAMETER[&quot;latitude_of_origin&quot;,0],</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp;PARAMETER[&quot;central_meridian&quot;,-93],</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp;PARAMETER[&quot;scale_factor&quot;,0.9996],</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp;PARAMETER[&quot;false_easting&quot;,500000],</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp;PARAMETER[&quot;false_northing&quot;,0],</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp; &nbsp;UNIT[&quot;METERS&quot;,1]]</font></tt><font size=3> </font><tt><font size=2><br>
Origin = (672440.000000362170000,3909175.831000711300000)</font></tt><font size=3>
</font><tt><font size=2><br>
Pixel Size = (5.000000000115670,-5.000000000115670)</font></tt><font size=3>
</font><tt><font size=2><br>
Corner Coordinates:</font></tt><font size=3> </font><tt><font size=2><br>
Upper Left &nbsp;( &nbsp;672440.000, 3909175.831) ( 91d 6'11.50&quot;W,
35d18'39.37&quot;N)</font></tt><font size=3> </font><tt><font size=2><br>
Lower Left &nbsp;( &nbsp;672440.000, 3878485.831) ( 91d 6'34.59&quot;W,
35d 2'3.66&quot;N)</font></tt><font size=3> </font><tt><font size=2><br>
Upper Right ( &nbsp;692090.000, 3909175.831) ( 90d53'13.82&quot;W, 35d18'26.47&quot;N)</font></tt><font size=3>
</font><tt><font size=2><br>
Lower Right ( &nbsp;692090.000, 3878485.831) ( 90d53'39.54&quot;W, 35d
1'50.90&quot;N)</font></tt><font size=3> </font><tt><font size=2><br>
Center &nbsp; &nbsp; &nbsp;( &nbsp;682265.000, 3893830.831) ( 90d59'54.88&quot;W,
35d10'15.28&quot;N)</font></tt><font size=3> </font><tt><font size=2><br>
Band 1 Block=256x4 Type=Byte, ColorInterp=Undefined</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp;Min=1.000 Max=218.000</font></tt><font size=3> </font><tt><font size=2><br>
 &nbsp;NoData Value=255</font></tt><font size=3> </font><tt><font size=2><br>
 &nbsp;Overviews: 983x1535, 492x768, 246x384, 123x192, 62x96</font></tt><font size=3>
</font><tt><font size=2><br>
 &nbsp;Metadata:</font></tt><font size=3> </font><tt><font size=2><br>
 &nbsp; &nbsp;LAYER_TYPE=athematic</font></tt><font size=3> <br>
<br>
<br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=21%><font size=1 color=#5f5f5f face="sans-serif">From:</font><font size=3>
</font>
<td width=78%><font size=1 face="sans-serif">Naresh Pai &lt;npai@uark.edu&gt;</font><font size=3>
</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font><font size=3>
</font>
<td><font size=1 face="sans-serif">fwtools@lists.maptools.org</font><font size=3>
</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font><font size=3>
</font>
<td><font size=1 face="sans-serif">08/10/2009 12:19 PM</font><font size=3>
</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font><font size=3>
</font>
<td><font size=1 face="sans-serif">[FWTools] gdal_translate</font><font size=3>
</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Sent by:</font><font size=3>
</font>
<td><font size=1 face="sans-serif">fwtools-bounces@lists.maptools.org</font></table>
<br><font size=3><br>
</font>
<hr noshade><font size=3><br>
<br>
<br>
Hello,<br>
 &nbsp;I am developing a geospatial tool in matlab. While running this
tool, the user will have access to a grid file developed by ArcGIS ( *.adf)
developed from another program. However, since I am developing the tool
in Matlab (which can read geotiff), I need to convert the .adf file to
.tif file.<br>
 &nbsp; One of the methods I am considering is to use the gdal_translate
function. I downloaded the FWTools (2.4.2) and to start with, I used the
OpenEV program to open the .aux file attached with the *.adf file. However
when I tried to export using (File -&gt; export), I get an error message
saying that it is unable to create this tif file.<br>
 &nbsp; Eventually I would like to fire up the gdal_translate.exe from
within Matlab to convert the grid to tif. I have uploaded the grid file
to the following link.<br>
 <br>
 </font><a href="https://www.uark.edu/dropbox/fetch.php?filehash=dc9a2f3d2caf37c1cd0f73bfb80e4238" target=_blank><font size=3 color=blue><u>https://www.uark.edu/dropbox/fetch.php?filehash=dc9a2f3d2caf37c1cd0f73bfb80e4238</u></font></a><font size=3><br>
 <br>
I would appreciate any suggestions/comments as I troubleshoot this problem.<br>
 <br>
Thank you.<br>
Naresh <br>
<br>
-- <br>
Naresh Pai<br>
PhD Student<br>
Department of Biological and Agricultural Engineering<br>
203 Engineering Hall<br>
University of Arkansas, Fayetteville, AR 72701<br>
<br>
479.789.4942</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:naresh.pai@gmail.com target=_blank><font size=3 color=blue><u>naresh.pai@gmail.com</u></font></a><tt><font size=2>_______________________________________________<br>
FWTools mailing list<br>
FWTools@lists.maptools.org</font></tt><font size=3 color=blue><u><br>
</u></font><a href=http://lists.maptools.org/mailman/listinfo/fwtools><tt><font size=2 color=blue><u>http://lists.maptools.org/mailman/listinfo/fwtools</u></font></tt></a><font size=3 color=blue><u><br>
</u></font><a href=http://fwtools.maptools.org/><tt><font size=2 color=blue><u>http://fwtools.maptools.org/</u></font></tt></a><font size=3><br>
<br>
<br>
</font><tt><font size=2>_______________________________________________<br>
FWTools mailing list<br>
FWTools@lists.maptools.org<br>
</font></tt><a href=http://lists.maptools.org/mailman/listinfo/fwtools><tt><font size=2>http://lists.maptools.org/mailman/listinfo/fwtools</font></tt></a><tt><font size=2><br>
</font></tt><a href=http://fwtools.maptools.org/><tt><font size=2>http://fwtools.maptools.org/</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>