Skip to content

Conversation

@github-actions
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