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

Add simple test showing issues in grdimage #4204

Merged
merged 1 commit into from
Sep 12, 2020
Merged

Add simple test showing issues in grdimage #4204

merged 1 commit into from
Sep 12, 2020

Conversation

PaulWessel
Copy link
Member

The plotting of this 5x5 PNG file reveals problems in master. The original plots were made using the grdimage-part1 branch and make it clear the mismatches reported on #4163 is due to a (long-lived) bug in grdimage in master. Because those images are larger the offsets are very small, but this 5c5 revels a large shift, as indicated below (note: the shift only applies to the unprojected images on bottom row, not the Mercator projection on top row). It is clearly a pixel vs gridline-registration shift. While the PNG is pixel registered, in master it is treated as gridline and shifted by half a pixel.

Test output on the grdimage-part1 branch

png_image

Test output on the master branch

png_image

The plotting of this 5x5 PNG file reveals problems in master.
@PaulWessel PaulWessel requested a review from seisman September 12, 2020 05:33
@joa-quim joa-quim self-requested a review September 12, 2020 14:54
@joa-quim joa-quim merged commit ee89c01 into master Sep 12, 2020
@joa-quim joa-quim deleted the png-image-test branch September 12, 2020 14:56
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