MATLAB Answers

How to refactor dted(foldername) function calls using the new readgeoraster() function?

4 ビュー (過去 30 日間)
Thomas Watson
Thomas Watson 2021 年 3 月 2 日
回答済み: Maadhav Akula 2021 年 3 月 24 日
The dted() function has been deprecated since the last few releases, and will require refactoring code to use readgeoraster(). This new function does not take in folder paths, only file paths.
The "Compatibility Considerations" section on the dted documentation page only gives examples of using the new readgeoraster() function when passing a single dted file. It does not give examples of how to refactor code that passed in a folder to DTED files and relied on the dted() function automatically handling which files to open, reading them, concatenating them correctly, and returning the data.
Is there a way to replicate the dted(foldername, ...) functionality wihout having to dig inside dted.m and carve out the code to do this?
I know we can use dteds() to get the list of DTED files needed and pass them individually into readgeoraster, but this will not handle properly concatenating all of the files together for us.

回答 (1 件)

Maadhav Akula
Maadhav Akula 2021 年 3 月 24 日
Hi Thomas,
Utilizing dteds() function as you suggested is one of the workaround, maybe in your case, utilize dted() function for now, the developers are considering to provide a more complete replacement in future releases!

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by