<br><font size=2 face="sans-serif">Naresh,</font>
<br><font size=2 face="sans-serif"> 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 <thare@usgs.gov></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>
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>
>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>
>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>
hrus1.aux</font></tt><font size=3> </font><tt><font size=2><br>
hrus1.rrd</font></tt><font size=3> </font><tt><font size=2><br>
hrus1\dblbnd.adf</font></tt><font size=3> </font><tt><font size=2><br>
hrus1\hdr.adf</font></tt><font size=3> </font><tt><font size=2><br>
hrus1\metadata.xml</font></tt><font size=3> </font><tt><font size=2><br>
hrus1\prj.adf</font></tt><font size=3> </font><tt><font size=2><br>
hrus1\sta.adf</font></tt><font size=3> </font><tt><font size=2><br>
hrus1\vat.adf</font></tt><font size=3> </font><tt><font size=2><br>
hrus1\w001001.adf</font></tt><font size=3> </font><tt><font size=2><br>
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["UTM Zone 15, Northern Hemisphere",</font></tt><font size=3>
</font><tt><font size=2><br>
GEOGCS["NAD83",</font></tt><font size=3> </font><tt><font size=2><br>
DATUM["North_American_Datum_1983",</font></tt><font size=3>
</font><tt><font size=2><br>
SPHEROID["GRS 1980",6378137,298.257222101,</font></tt><font size=3>
</font><tt><font size=2><br>
AUTHORITY["EPSG","7019"]],</font></tt><font size=3>
</font><tt><font size=2><br>
TOWGS84[0,0,0,0,0,0,0],</font></tt><font size=3>
</font><tt><font size=2><br>
AUTHORITY["EPSG","6269"]],</font></tt><font size=3>
</font><tt><font size=2><br>
PRIMEM["Greenwich",0,</font></tt><font size=3>
</font><tt><font size=2><br>
AUTHORITY["EPSG","8901"]],</font></tt><font size=3>
</font><tt><font size=2><br>
UNIT["degree",0.0174532925199433,</font></tt><font size=3>
</font><tt><font size=2><br>
AUTHORITY["EPSG","9108"]],</font></tt><font size=3>
</font><tt><font size=2><br>
AXIS["Lat",NORTH],</font></tt><font size=3>
</font><tt><font size=2><br>
AXIS["Long",EAST],</font></tt><font size=3>
</font><tt><font size=2><br>
AUTHORITY["EPSG","4269"]],</font></tt><font size=3>
</font><tt><font size=2><br>
PROJECTION["Transverse_Mercator"],</font></tt><font size=3>
</font><tt><font size=2><br>
PARAMETER["latitude_of_origin",0],</font></tt><font size=3>
</font><tt><font size=2><br>
PARAMETER["central_meridian",-93],</font></tt><font size=3>
</font><tt><font size=2><br>
PARAMETER["scale_factor",0.9996],</font></tt><font size=3>
</font><tt><font size=2><br>
PARAMETER["false_easting",500000],</font></tt><font size=3>
</font><tt><font size=2><br>
PARAMETER["false_northing",0],</font></tt><font size=3>
</font><tt><font size=2><br>
UNIT["METERS",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 ( 672440.000, 3909175.831) ( 91d 6'11.50"W,
35d18'39.37"N)</font></tt><font size=3> </font><tt><font size=2><br>
Lower Left ( 672440.000, 3878485.831) ( 91d 6'34.59"W,
35d 2'3.66"N)</font></tt><font size=3> </font><tt><font size=2><br>
Upper Right ( 692090.000, 3909175.831) ( 90d53'13.82"W, 35d18'26.47"N)</font></tt><font size=3>
</font><tt><font size=2><br>
Lower Right ( 692090.000, 3878485.831) ( 90d53'39.54"W, 35d
1'50.90"N)</font></tt><font size=3> </font><tt><font size=2><br>
Center ( 682265.000, 3893830.831) ( 90d59'54.88"W,
35d10'15.28"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>
Min=1.000 Max=218.000</font></tt><font size=3> </font><tt><font size=2><br>
NoData Value=255</font></tt><font size=3> </font><tt><font size=2><br>
Overviews: 983x1535, 492x768, 246x384, 123x192, 62x96</font></tt><font size=3>
</font><tt><font size=2><br>
Metadata:</font></tt><font size=3> </font><tt><font size=2><br>
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 <npai@uark.edu></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>
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>
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 -> export), I get an error message
saying that it is unable to create this tif file.<br>
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>