Skip to content

Conversation

@Chuan1937
Copy link
Contributor

When dip=90° and rank=180°, tan(90°)×sin(180°)=Inf×0, causing an error.

Change the formula in the utilmeca_proj_radius function from atan(tand×sind) to atan2(sin×sin, cos) and add an epsilon tolerance.

Fixes #8053

Test results:
image

@joa-quim joa-quim merged commit aa19d48 into GenericMappingTools:master Jan 23, 2026
7 of 14 checks passed
@Chuan1937 Chuan1937 deleted the psmeca-fix branch January 24, 2026 11:42
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.

psmeca bug, -T option

2 participants