GenericMappingTools / GenericMappingTools/gmt

sphdistance can miss some nodes

Open
#4,511 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C
Stars
979
Forks
414
Avg merge
17h 26m
Merged PRs (30d)
54

Description

See the [forum](https://forum.generic-mapping-tools.org/t/question-about-sphdistance/1096/2) issue for specifics. Looking at the nodes that are not set, they look like this:

![a](https://user-images.githubusercontent.com/26473567/100563545-b7658680-3262-11eb-8272-e6e552847a32.png)

I think the reason this happens is that Sabin has lots of very acute spherical triangles from his densely sampled points along the ridge to a far point on another ridge. Due to some unclear roundoff the test that checks if a node is inside may somehow fail nd leave these behind.

One solution I can implement is to loop over the grid, find these nodes and replace them with the 4-star average.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.