eodag icon indicating copy to clipboard operation
eodag copied to clipboard

imageio.imwrite error in tuto: Cannot write mode F as PNG

Open tiqvahub opened this issue 8 months ago • 1 comments

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)

tiqvahub avatar Oct 30 '23 18:10 tiqvahub