fixes plotting error in declarative with hires data #1595
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description Of Changes
This fix to the declarative syntax is to address the issue brought up by @marcinkawka in Issue #1590 where they were experiencing issues with contouring values. Upon a deep dive into the declarative code, I believe that this issue arose due to the high resolution of the data being used and the use of a modulo in generating x-component values for plotting that were problematic.
The fix to this problem is to not take the modulo of the x values being computed when transforming points from lat/lon to projection coordinates. I don't know why this was needed initially as none of the tests fail with that removed (also removed from the barb plotting aspect as well with similar result).
I have added a new test dataset based on the data used in the issue in ensure this issue is covered.
Here is an example using the new test data that reproduces the bad behavior:
To get the appropriate behavior, simply remove the
% 360
on the x variable.Checklist