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

Update w2w.py #21

Merged
merged 3 commits into from
Dec 14, 2021
Merged

Update w2w.py #21

merged 3 commits into from
Dec 14, 2021

Conversation

dargueso
Copy link
Collaborator

Calculation of distance using spherical law of cosines, instead of using coordinates directly. This was a good approximation near the equator, but failed for our purposes as we move to the poles.

Calculation of distance using spherical law of cosines, not directly degrees
w2w/w2w.py Show resolved Hide resolved
Select AT LEAST the number of pixels indicated by the user. This may produce a larger number of pixels selected if the farthest points of the selection are at the same distance.
Added test for distance calculation
@jkittner jkittner force-pushed the Coordinate_distance branch from 617d785 to e97bdee Compare December 13, 2021 20:45
@jkittner jkittner force-pushed the Coordinate_distance branch from effc3b8 to e97bdee Compare December 14, 2021 15:28
@jkittner jkittner merged commit 3594eae into main Dec 14, 2021
@jkittner jkittner deleted the Coordinate_distance branch December 14, 2021 15:32
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 this pull request may close these issues.

3 participants