-
Notifications
You must be signed in to change notification settings - Fork 303
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
Include gradient/axisintercept for mode p #2870
Include gradient/axisintercept for mode p #2870
Conversation
NinJo wants that gradient=1 and axisintercept=0 for images of mode p. It shall be so.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2870 +/- ##
=======================================
Coverage 96.05% 96.05%
=======================================
Files 370 370
Lines 54320 54332 +12
=======================================
+ Hits 52177 52189 +12
Misses 2143 2143
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Pull Request Test Coverage Report for Build 10528439571Details
💛 - Coveralls |
…iff-p-mode-gradient
In the ninjogeotiff writer, when testing p-mode images, add an enhancement history such as palettize would add, to get a more realistic test.
For ninjogeotiff mode p, force scale/offset to be 1 and 0, respectively. As a workaround for pytroll#2300, do not check image.mode, but use image.data.attrs["mode"] instead.
The fallback/workaround to use image.data.attrs["mode"] instead of image.mode can and should only be used after to_image has been called. Before to_image has been called, the former is unavailable and the latter is reliable, I think.
b675cbf
to
2440dc0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
NinJo expects palette images to include gradient and axisintercept with values 1 and 0, respectively.
Needs #2874 to be merged first.
I needed to include some workarounds for #2300.
AUTHORS.md
if not there already