Error Reading a DEM file using "gtopo30" function of the Mapping Toolbox

5 views (last 30 days)
I am running into an error while reading a DEM file with "W140N40" tile using "gtopo30" function of the Mapping Toolbox. The region tile is for Southern California.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 22 Feb 2021
Edited: MathWorks Support Team on 22 Feb 2021
Start by downloading the "W140N40" tile from here:
Note: This is an archived version.
Note: Make sure to download  "w140n40.hdr.zip" and "w140n40.dmw.zip" and place the extracted HDR and DEM in your MATLAB current folder.
Execute the below commands to get the map of the region:
[Z,refvec] = gtopo30('W140N40',1,[34 36],[-120 -118]);
figure
usamap(Z,refvec);
geoshow(Z,refvec,'DisplayType','surface');
demcmap(Z);

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2017a

Community Treasure Hunt

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

Start Hunting!