MATLAB: Unable to read DEM file with GTOPO30s

demgtopo30Mapping Toolbox

i am trying to read GTOPO30 data I downloaded from USGS https://earthexplorer.usgs.gov/.
I selected a region in So. California with latlim [34 36], lonlim [-120 -118]. When I try reading the DEM file I get an error:
The GTOPO30 directory, 'C:\Documents\MATLAB\gt30w140n40_dem/', does not contain data for the specified latitude longitude limits.
But I am pretty sure I have the correct dem tile with the correct latitude longitude limits.
In fact gtopo30s([34 36],[-120 -118]) returns the correct tile name w140n40. Any help would be greatly appreciated.

Best Answer

Does this answer your question?
Related Question