eodag
eodag copied to clipboard
imageio.imwrite error in tuto: Cannot write mode F as PNG
Hi all,
While running the piece of code below [1] as part of the Tutorial in a Ubuntu.22.04 lTS, I got the error message
Cannot write mode F as PNG, more specifically msg = f "cannot write mode {mode} as PNG"
Any comment on that will be very appreciated it.
[1]
triest_gulf = (triest_gulf * 255) / np.max(triest_gulf)
imageio.imwrite(os.path.join(workspace, 'triest_gulf.png'), triest_gulf)
Hello @tiqvahub and thanks for submitting this issue. We'll plan to check this tutorial and see how this could be reproduced and fixed