File Exchange

image thumbnail

Read DTED elevation data

version 1.0.0.0 (412 KB) by tung
Read binary DTED files ( .dt0, dt1, dt2) to matrix

3 Downloads

Updated 19 Nov 2009

View License

If you don't have mapping toolbox and still want to read binary DTED files, then try:

[map latgrid longrid] = mapreader2;

Cite As

tung (2020). Read DTED elevation data (https://www.mathworks.com/matlabcentral/fileexchange/25897-read-dted-elevation-data), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Kemal Oksuz

Works, thanks!

I modified it so that the figure drawing happens outside of the function (as when you only want to read a DTED file in your project and not draw everything).

Thanks anyway!

Works fine! I had to replace unrealistic values by following below line 154:

map(map==65535) = NaN;

Evan

Very useful!

Does not seem to correctly handle when latitude or longitude is negative. i.e. West and South hemispheres.
Using the variable c assigned on line 138, c(12) designates longitude hemisphere as 'E' or 'W' and c(20) latitude hemisphere as 'N' or 'S'.

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Acknowledgements

Inspired: dted_read, DTED - EGM96 load/display v1.0