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
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.
Describe the bug
Calling
to_image
changes a dataset with mode P to one with mode L.To Reproduce
Expected behavior
Expected output:
Actual results
Actual output:
Environment Info:
Additional context
This happens due to the
.squeeze()
call insatpy.writers.to_image
:satpy/satpy/writers/__init__.py
Line 483 in 6dfb9b9
This deletes the
bands
dimension for mode P or L. ThenXRImage.__init__
adds abands
dimension again with modeL
.The conversion presents an obstacle for handling P-mode images.
The text was updated successfully, but these errors were encountered: