[FWTools] gdal_translate

Trent M Hare thare at usgs.gov
Mon Aug 10 15:47:33 EST 2009


Naresh,
        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.

-Trent





From:
Trent M Hare <thare at usgs.gov>
To:
fwtools at lists.maptools.org
Date:
08/10/2009 01:28 PM
Subject:
Re: [FWTools] gdal_translate
Sent by:
fwtools-bounces at lists.maptools.org




Naresh, 
        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. 
http://w3.ualg.pt/~jluis/mirone/ 

For your issue, make sure you are pointing at the correct *.adf file. e.g. 

>gdal_translate hrus1\w001001.adf out.tif 
which worked for me. 

Regards, 
Trent 

And you file looks fine as shown by gdalinfo 
>gdalinfo hrus1\w001001.adf 
Driver: AIG/Arc/Info Binary Grid 
Files: hrus1 
       hrus1.aux 
       hrus1.rrd 
       hrus1\dblbnd.adf 
       hrus1\hdr.adf 
       hrus1\metadata.xml 
       hrus1\prj.adf 
       hrus1\sta.adf 
       hrus1\vat.adf 
       hrus1\w001001.adf 
       hrus1\w001001x.adf 
Size is 3930, 6138 
Coordinate System is: 
PROJCS["UTM Zone 15, Northern Hemisphere", 
    GEOGCS["NAD83", 
        DATUM["North_American_Datum_1983", 
            SPHEROID["GRS 1980",6378137,298.257222101, 
                AUTHORITY["EPSG","7019"]], 
            TOWGS84[0,0,0,0,0,0,0], 
            AUTHORITY["EPSG","6269"]], 
        PRIMEM["Greenwich",0, 
            AUTHORITY["EPSG","8901"]], 
        UNIT["degree",0.0174532925199433, 
            AUTHORITY["EPSG","9108"]], 
        AXIS["Lat",NORTH], 
        AXIS["Long",EAST], 
        AUTHORITY["EPSG","4269"]], 
    PROJECTION["Transverse_Mercator"], 
    PARAMETER["latitude_of_origin",0], 
    PARAMETER["central_meridian",-93], 
    PARAMETER["scale_factor",0.9996], 
    PARAMETER["false_easting",500000], 
    PARAMETER["false_northing",0], 
    UNIT["METERS",1]] 
Origin = (672440.000000362170000,3909175.831000711300000) 
Pixel Size = (5.000000000115670,-5.000000000115670) 
Corner Coordinates: 
Upper Left  (  672440.000, 3909175.831) ( 91d 6'11.50"W, 35d18'39.37"N) 
Lower Left  (  672440.000, 3878485.831) ( 91d 6'34.59"W, 35d 2'3.66"N) 
Upper Right (  692090.000, 3909175.831) ( 90d53'13.82"W, 35d18'26.47"N) 
Lower Right (  692090.000, 3878485.831) ( 90d53'39.54"W, 35d 1'50.90"N) 
Center      (  682265.000, 3893830.831) ( 90d59'54.88"W, 35d10'15.28"N) 
Band 1 Block=256x4 Type=Byte, ColorInterp=Undefined 
  Min=1.000 Max=218.000 
  NoData Value=255 
  Overviews: 983x1535, 492x768, 246x384, 123x192, 62x96 
  Metadata: 
    LAYER_TYPE=athematic 




From: 
Naresh Pai <npai at uark.edu> 
To: 
fwtools at lists.maptools.org 
Date: 
08/10/2009 12:19 PM 
Subject: 
[FWTools] gdal_translate 
Sent by: 
fwtools-bounces at lists.maptools.org




Hello,
  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.
   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.
   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.
 
 
https://www.uark.edu/dropbox/fetch.php?filehash=dc9a2f3d2caf37c1cd0f73bfb80e4238

 
I would appreciate any suggestions/comments as I troubleshoot this 
problem.
 
Thank you.
Naresh 

-- 
Naresh Pai
PhD Student
Department of Biological and Agricultural Engineering
203 Engineering Hall
University of Arkansas, Fayetteville, AR 72701

479.789.4942
naresh.pai at gmail.com_______________________________________________
FWTools mailing list
FWTools at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/fwtools
http://fwtools.maptools.org/


_______________________________________________
FWTools mailing list
FWTools at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/fwtools
http://fwtools.maptools.org/


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/fwtools/attachments/20090810/cc218fa3/attachment-0001.htm 


More information about the FWTools mailing list