Using USGS DEMs in Mapping Toolbox

5 visualizaciones (últimos 30 días)
Ray
Ray el 14 de Mzo. de 2012
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?

Respuesta aceptada

Rob Comer
Rob Comer el 24 de Mzo. de 2012
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 comentario
Ray
Ray el 24 de Mzo. de 2012
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.

Iniciar sesión para comentar.

Más respuestas (1)

Ken
Ken el 8 de Abr. de 2012
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?

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by