4.0

4.0 | 2 ratings Rate this file 19 Downloads (last 30 days) File Size: 411.96 KB File ID: #25897
image thumbnail

Read DTED elevation data

by tung

 

19 Nov 2009

Read binary DTED files ( .dt0, dt1, dt2) to matrix

| Watch this File

File Information
Description

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

[map latgrid longrid] = mapreader2;

Acknowledgements
This submission has inspired the following:
DTED - EGM96 load/display v1.0
MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
11 Dec 2009 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'.

27 Mar 2012 Jan Michalek

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

map(map==65535) = NaN;
 
  

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
dted tung 19 Nov 2009 10:08:04

Contact us at files@mathworks.com