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 a bug with geotiff writing when yaxis is flipped #1342

Merged
merged 2 commits into from
May 9, 2024

Conversation

WeatherGod
Copy link
Contributor

@WeatherGod WeatherGod commented May 9, 2024

Description of Changes

Correctly compute yStart when flipping the y-axis. Not doing can result in the bounding box to be in the wrong location if the source coordinates were in kilometers.

PR Checklist

  • Link to any issues that the PR addresses
  • Add labels
  • Open as a draft PR
    until ready for review
  • Make sure GitHub tests pass
  • Mark PR as "Ready for Review"

@WeatherGod
Copy link
Contributor Author

... I swear, one of these days I'll remember to use spotlessApply before committing...

Copy link
Member

@tdrwenski tdrwenski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @WeatherGod!

@WeatherGod
Copy link
Contributor Author

Just to add a clarifying comment here (and I'll correct the comment in the code in my other PR), I got my sense of "flipped" flipped around. The test data is special because its y-axis goes from negative to positive, which is the condition in which the geotiff writer will flip the data around.

@tdrwenski tdrwenski merged commit 56f380e into Unidata:maint-5.x May 9, 2024
10 checks passed
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.

None yet

2 participants