I'm working with jupyter and I have been trying to open TIFF images that I have download from GEE. I have trying to open the images in Jupyter environment.
This is my code:
from PIL import Image import numpy img = Image.open("NDVI.tif")
but I get the following error message:
OSError Traceback (most recent call last) in ----> 1 img = Image.open("NDVI.tif")
~\Anaconda3\lib\site-packages\PIL\Image.py in open(fp, mode) 2820
for message in accept_warnings: 2821 warnings.warn(message) -> 2822 raise IOError("cannot identify image file %r" % (filename if filename else fp)) 2823 2824
OSError: cannot identify image file 'NDVI.tif'
I have tried to change the raster nae to end with TIFF and tiff but didn't help. How can I solve this?