You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The ninjogeotiff writer omits gradient and axis intercept for images of mode P, RGB, or RGBA, because those tags are not meaningful for categorical or RGB images. However, for mode P images, NinJo still expects a gradient set to 1. As it is now, mode P images produced by Satpy cannot be correctly displayed in NinJo, because the absence of a gradient is interpreted as a gradient of 0, leading to all-black images.
For mode P images, NinJo ignores the physical quantity/unit. Colormaps and legends are defined entirely in terms of pixel values. Therefore, regardless of the physical quantity/unit, it needs that gradient=1 and axisintercept=0.y**.
Describe the solution you'd like
The Satpy ninjogeotiff writer should (optionally) include a gradient and axis intercept for mode P images. The user should have a way to force those values to 1 and 0, overriding other methods that satpy and trollimage use for determining the correct gradient and axis intercept.
Describe any changes to existing user workflow
If we default to include gradient and axis intercept in the future, any users who rely on their absence will have to change their workflow. I expect no such users exist.
Overriding the automatically computed values should of course be optional, so this part will not affect any existing user workflow.
Additional context
The alternative would be to change NinJo, but changing Satpy is 2–3 orders of magnitude faster.
The text was updated successfully, but these errors were encountered:
Feature Request
Is your feature request related to a problem? Please describe.
The ninjogeotiff writer omits gradient and axis intercept for images of mode P, RGB, or RGBA, because those tags are not meaningful for categorical or RGB images. However, for mode P images, NinJo still expects a gradient set to 1. As it is now, mode P images produced by Satpy cannot be correctly displayed in NinJo, because the absence of a gradient is interpreted as a gradient of 0, leading to all-black images.
For mode P images, NinJo ignores the physical quantity/unit. Colormaps and legends are defined entirely in terms of pixel values. Therefore, regardless of the physical quantity/unit, it needs that gradient=1 and axisintercept=0.y**.
Describe the solution you'd like
The Satpy ninjogeotiff writer should (optionally) include a gradient and axis intercept for mode P images. The user should have a way to force those values to 1 and 0, overriding other methods that satpy and trollimage use for determining the correct gradient and axis intercept.
Describe any changes to existing user workflow
If we default to include gradient and axis intercept in the future, any users who rely on their absence will have to change their workflow. I expect no such users exist.
Overriding the automatically computed values should of course be optional, so this part will not affect any existing user workflow.
Additional context
The alternative would be to change NinJo, but changing Satpy is 2–3 orders of magnitude faster.
The text was updated successfully, but these errors were encountered: