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
The ninjogeotiff writer unconditionally writes an offset and scale factor for mode L images, which is usually fine. It omits them for mode RGB or RGBA images, which is correct. However, it also adds offset and scale factor for mode P images, which is wrong. In some cases, offset and scale factor should be skipped even for mode L or LA images, for example, when writing vis_with_ir_cloud_overlay.
NinJo will interpret those images wrongly if they have an offset and scale factor.
NinJo will display those images wrongly. The writer should have an option whether to include offset and scale factor. Or maybe this could be skipped when units are set to N/A; if we have a scene where we include both 10.8, HRV, and a HRV/10.8-combination, then the former two should have them, but the latter should not.
The text was updated successfully, but these errors were encountered:
The NinJo technical documentation suggests that AxisIntercept and Gradient are mandatory tags. If true, they should be set to 0/1 when there is no physical interpretation for the pixels. But so far NinJo has been accepting RGBs without those tags just fine. Checking with the NinJo devs to see what should be done here.
Describe the bug
The ninjogeotiff writer unconditionally writes an offset and scale factor for mode L images, which is usually fine. It omits them for mode RGB or RGBA images, which is correct. However, it also adds offset and scale factor for mode P images, which is wrong. In some cases, offset and scale factor should be skipped even for mode L or LA images, for example, when writing
vis_with_ir_cloud_overlay
.NinJo will interpret those images wrongly if they have an offset and scale factor.
To Reproduce
followed by
Expected behavior
I expect an image that does not have any
AxisIntercept
(offset) orGradient
(scale factor) defined.Actual results
Metadata from
gdalinfo
:Environment Info:
Additional context
NinJo will display those images wrongly. The writer should have an option whether to include offset and scale factor. Or maybe this could be skipped when units are set to
N/A
; if we have a scene where we include both 10.8, HRV, and a HRV/10.8-combination, then the former two should have them, but the latter should not.The text was updated successfully, but these errors were encountered: