Why was the dted() function hardcoded to read from lowest (0) to highest (3) level?

1 回表示 (過去 30 日間)
Thomas Watson
Thomas Watson 2019 年 4 月 4 日
This is more a question to the relevant Mapping Toolbox developers, and probably isn't the most appropriate area or way to ask.
Inside of dted.m, line 170, the code attempts to search for a matching dted file from level 0, 1, 2, and finally 3.
This seems like an odd choice to hardcode 0:3 without providing an additional key/value parameter to specify search order (i.e., highest to lowest) instead. The current implementation makes passing a folder path to dted() rather useless, as I currently have to resort to manually checking if higher levels exists first and individually read each file with a corresponding dted() call. If instead we were able to change the search order (i.e. 3:-1:0), calling dted() with a folder would guarantee that the highest level dted files are used if available.
For background, I am working on an application where all level 0 files are available, but they should only be treated as a backup option if higher levels are not available first. Having the highest resolutions (if available) is absolutely preferred over level 0. I imagine there are other MATLAB users that would have similar requirements.

回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by