how to extract the lat/long information about the given dted files?

5 vues (au cours des 30 derniers jours)
Elite cada
Elite cada le 23 Avr 2013
Modifié(e) : per isakson le 12 Fév 2015
how to extract the lat/long information about the given dted files? so that when i use those lat/long info it shoud point out the respected dted?
example given in matlab
latlim = [ 41.15 42.22]; lonlim = [-70.94 -69.68];
dteds(latlim,lonlim,1)
ans =
'\DTED\W071\N41.dt1'
'\DTED\W070\N41.dt1'
'\DTED\W071\N42.dt1'
'\DTED\W070\N42.dt1'
and is this ans is stored in default?
  1 commentaire
per isakson
per isakson le 12 Fév 2015
Modifié(e) : per isakson le 12 Fév 2015
"and is this ans is stored in default?" &nbsp ans is a special variable name that is given by default when the user doesn't provide an output argument. ans is typically overwritten all the time and should not be used in code.
Try
a_better_name = dteds(latlim,lonlim,1);

Connectez-vous pour commenter.

Réponses (1)

daniel
daniel le 12 Fév 2015
I am not sure if I am understanding your question. Are you attempting to obtain Elevation data for certain lat/long values within a DTED1 cell?
I found Matlab's DTED/DTEDs functions to be quite useless...
I was able to modify this function to give me correct DTED elevation values based on lat/long input... Try it out http://www.mathworks.com/matlabcentral/fileexchange/25897-read-dted-elevation-data

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by