Using USGS DEMs in Mapping Toolbox

5 次查看(过去 30 天)
I am new to Matlab, and I am trying to use USGS DEMs in Matlab using the Mapping Toolbox. So far, I can't convince Matlab to recognize the USGS DEM downloads.
The USGS National Map Seamless Server provides download formats in ArcGRID, GeoTIFF, GridFloat, and BIl_16INT.
For ArcGRID it appears that Matlab expects a .grd extension but the USGS data doesn't use this extension.
For GeoTIFF the USGS data uses an extension of .tif, but Matlab seems to use this only for images (not DEMs????).
The GridFolat and BIL_16INT don't seem to be recognized by Matlab.
How do I select a USGS download format that Matlab will use to form a DEM map?

采纳的回答

Rob Comer
Rob Comer 2012-3-24
Try downloading your data sets in GeoTIFF format, then use geotiffread. It's not limited to images; it can be used for DEMs as well.
  1 个评论
Ray
Ray 2012-3-24
Thank you for your response. Using the geotiffread on the USGS tif file gave an error about unequal row lengths.
So, I used the import wizard, which gave a uniform, but unstructured matrix. The result plotted with the contour function was plotted South at the top and North at the bottom. Finally, I used the flipud function to reorder the rows in the matrix in their proper North-South relationship.
Using the contour and contourf functions gave the desired result.

请先登录,再进行评论。

更多回答(1 个)

Ken
Ken 2012-4-8
I have the exact same issue, and am "new to NAD". USGS/NAD seems to be the emerging hi-res dataset (down to 1/9 second), replacing dted over the U.S.
It would be nice to have native access via a mapping toolbox interface.
maybe a MATLAB person can let us know if this is coming?

类别

Help CenterFile Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by