File Exchange

image thumbnail

dted_read

version 1.0.0.0 (330 KB) by

Read Digital Terrain Elevation Data (DTED) files

6 Downloads

Updated

View License

[Z, LAT, LON] = DTED_READ(FILENAME) returns elevation data (Z) in the specified DTED file as a regular data grid with elevations in meters. LAT and LON provide 1D arrays with latitudes and longitudes (in degrees) corresponding to columns and rows of the elevation grid.
DTED files usually follow specific filename and directory name format ending with for example with "\e003\n15.dt0". If file is in the proper format than additional verifications are performed to ensure correctness.

[Z, LAT, LON, HEADER] = DTED_READ(FILENAME) also returns HEADER struct with metadata fields extracted from the header. Only minimal amount of metadata is read.

Comments and Ratings (1)

Frank Cruz

Ran it with the .dt1 file you provided and works.

.dt2 data not working.

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Read DTED elevation data

MATLAB Online Live Editor Challenge

Win cash prizes and have your live script featured on our website

Learn more

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video