ETOPO1 Question
이전 댓글 표시
I've trying to map ETOPO1 data but I keep hitting road blocks.
1. I've tried is using the etopo command provided by MATLAB but for ETOPO1 it requires a .flt file which I can't seem to find on the web. Does anyone know where that information can be found?
2. I've loaded in the terrain manually using
terrain = fread(fid, [10801, 21601], 'int16');
The data is indexes longitude by column and latitude by rows. Both are in arc-minute increments (1/60 of a degree) and they begin at -180 and 90 respectively. The data at each cell is the altitude at that given location. But I can't figure out how to create the proper referencing vector for the geoshow function
geoshow(terrain, R, 'DisplayType', 'mesh')
What form should R take?
답변 (2개)
Kelly Kearney
2011년 5월 5일
A reference vector is simply a 1 x 3 vector:
[cells/degree north-latitude west-longitude]
So in your case, this would be:
R = [1/60 90 -180];
geoshow(terrain, R, ...);
However, I would caution against plotting the whole dataset... it's much higher resolution that your computer monitor could possibly display. For whole world display, you should probably downsample by at least 10.
As for the .flt files, they're available here under the link for whole-world grids (binary):
Just rename the files to match Matlab's expectation (remove _f4).
댓글 수: 1
Kelly Kearney
2011년 5월 6일
Oops, that should be
R = [60 90 -180];
Walter Roberson
2011년 5월 5일
0 개 추천
Here is an indication of the format of .flt files:
카테고리
도움말 센터 및 File Exchange에서 Interact with Maps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!