How to open a .adf file in Matlab?

14 views (last 30 days)
Hello,
I am trying to open a file developed in ArcGIS and saved as a group of .adf files. How can I open this in Matlab? Is there a special way I should save this in ArcGIS or a way to open .adf files in Matlab? If there isn't, can someone write a function to this? From what I found online there are many folks that would appreciate a function like this.
Thanks, Melissa

Accepted Answer

Mishaal Aleem
Mishaal Aleem on 18 Jul 2017
Edited: Mishaal Aleem on 18 Jul 2017
Can you use arcgridread? According to the arcgridread documentation, arcgridread can read gridded data set in ArcGrid ASCII or GridFloat format.
help arcgridread
From the help output:
Format Support
--------------
* ArcGrid ASCII
Also known as Arc ASCII Grid and ESRI ASCII raster format.
Created by the ArcGIS GRIDASCII command.
Data and header are in a single text file.
If a .prj file is present, it will be read also.
Grid values are read into MATLAB as a 2D array of class double.
* GridFloat
Also known as ESRI GridFloat.
Created by the ArcGIS GRIDFLOAT command.
Data and header are in separate (.flt and .hdr) files.
Pass the name of the .flt file (including extension) to arcgridread.
If an optional .prj file is present, it will be read also.
Grid values are read into MATLAB as a 2D array of class single.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!