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

[Backport 6.1] Add special check for non-rotated global grids #3853

Merged
merged 1 commit into from
Aug 6, 2020

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 6, 2020

Backport 2a4de82 from #3849

* Add special check for non-rotated global grids

We usually read global grids from file and they get rotated depending on the wesn selection.  However, when a global grid is passed from another environment, as GMT_IS_REFERENCE, we may be projeting that image in gmt_grd_project and if the repeated meridians fall inside the map (since no rotation has happened) they are counted twice, yielding a slightly different result.  Only applies to gridline-registrered grids.  This fix detects this special situation and skips one of the repeated meridians.

* Handle meridian to be duplicated

* Update gmt_map.c

* Update gmt_project.h
@seisman seisman merged commit 695854f into 6.1 Aug 6, 2020
@seisman seisman deleted the backport-3849-to-6.1 branch August 6, 2020 05:58
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.

2 participants