필터 지우기
필터 지우기

compute elevation profile for location that is NOT Korea

조회 수: 1 (최근 30일)
Nina
Nina 2016년 6월 20일
편집: Sean de Wolski 2016년 6월 20일
I am following the instructions at http://www.mathworks.com/help/map/data-grid-values-along-a-path.html to make an elevation cross section plot. If I try and load any location besides Korea (I tried various country names) I get an error. What are the choices of countries I can load? How can I repeat this example for another location or build an elevation data mat file for another location? I have the mapping toolbox.
My location of interest is California.

채택된 답변

Sean de Wolski
Sean de Wolski 2016년 6월 20일
편집: Sean de Wolski 2016년 6월 20일
Korea is shipped as an example data set and even that should not be used for anything other than an example.
If you don't have DEM files, I would recommend starting with wmsfind. There are many layers out there that contain DEM data. Once you find one for your location, use wmsread to pull in the data. In general, getting data is the hardest part.
Here's an example for New Hampshire, USA:
latlim = [44.1645 44.4216];
lonlim = [-71.4608 -71.2267];
nasaLayers = wmsfind('nasa*elev', 'SearchField', 'serverurl');
ned = refine(nasaLayers, 'usgs_ned');
[Z, refmatZ] = wmsread(ned, 'Latlim', latlim, 'Lonlim', lonlim);
Z = double(Z);
%%Contour map
% Use the data from NASA to build a contour map
%
% Build figure, map, and contour
figure
usamap(latlim, lonlim)
contourm(Z, refmatZ, 20, 'Color', 'k')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Map Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by