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

Fix incorrect internal use of PlateCarree #2378

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

dopplershift
Copy link
Contributor

@dopplershift dopplershift commented Apr 28, 2024

Rationale

This replaces a couple of internal uses of PlateCarree() for lon/lat coords with more proper geodetic CRS's on the same ellipse, which avoids some precision problems. In the case of LambertConformal, this was resulting in a traceback when creating a boundary on a spherical Earth datum.

This also fixes another case doing the same thing, seemingly without problem, but it seems better to avoid PlateCarree() here too.

Fixes #2377.

Implications

@CLAassistant
Copy link

CLAassistant commented Apr 28, 2024

CLA assistant check
All committers have signed the CLA.

@dopplershift dopplershift force-pushed the fix-2377 branch 2 times, most recently from 79f3a93 to 0f66f48 Compare April 28, 2024 04:24
This replaces a couple of internal uses of PlateCarree() for lon/lat
coords with more proper geodetic CRS's on the same ellipse, which avoids
some precision problems. In the case of LambertConformal, this was
resulting in a traceback when creating a boundary on a spherical Earth
datum.
@greglucas greglucas merged commit fadfa19 into SciTools:main Apr 29, 2024
24 checks passed
@dopplershift dopplershift deleted the fix-2377 branch April 29, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error initializing LambertConformal projection on sphere with 0.23
3 participants