Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent results from DTEDFrame.interpElevationAt() #50

Open
carpenlc opened this issue Oct 9, 2019 · 0 comments · May be fixed by #51
Open

Inconsistent results from DTEDFrame.interpElevationAt() #50

carpenlc opened this issue Oct 9, 2019 · 0 comments · May be fixed by #51

Comments

@carpenlc
Copy link

carpenlc commented Oct 9, 2019

The method DTEDFrame.interpElevationAt() is producing unexpected values for the output elevation value. As an example, using a sample DTED2 elevation file and point lat=-14.123 (index=3157.1995) and lon=-68.555 (index=1601.9989) the nearest 4 elevation posts in this dataset are:

ur = 1513
ul = 1522
ll = 1523
lr = 1515

Manually calculating a bilinear interpolation shows that the output elevation should be very close to the lower-right elevation post which is 1515 meters, but the resulting value is near the upper-right post (i.e. 1513). The code is not utilizing the lower elevation posts to generate the output interpolated value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant