Advertisement
lamiastella

cannot identify image file 'Rec-000026_16bit_counts.tif'

Jul 30th, 2020
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. I = plt.imread('Rec-000026_16bit_counts.tif')
  2. plt.show(I)
  3.  
  4. ---------------------------------------------------------------------------
  5. UnidentifiedImageError Traceback (most recent call last)
  6. <ipython-input-63-0e80e7a09c7a> in <module>
  7. ----> 1 I = plt.imread('Rec-000026_16bit_counts.tif')
  8. 2 plt.show(I)
  9.  
  10. ~/anaconda3/lib/python3.7/site-packages/matplotlib/pyplot.py in imread(fname, format)
  11. 2059 @docstring.copy(matplotlib.image.imread)
  12. 2060 def imread(fname, format=None):
  13. -> 2061 return matplotlib.image.imread(fname, format)
  14. 2062
  15. 2063
  16.  
  17. ~/anaconda3/lib/python3.7/site-packages/matplotlib/image.py in imread(fname, format)
  18. 1462 raise ValueError('Only know how to handle PNG; with Pillow '
  19. 1463 'installed, Matplotlib can handle more images')
  20. -> 1464 with Image.open(fname) as image:
  21. 1465 return pil_to_array(image)
  22. 1466 from matplotlib import _png
  23.  
  24. ~/anaconda3/lib/python3.7/site-packages/PIL/Image.py in open(fp, mode)
  25. 2929 warnings.warn(message)
  26. 2930 raise UnidentifiedImageError(
  27. -> 2931 "cannot identify image file %r" % (filename if filename else fp)
  28. 2932 )
  29. 2933
  30.  
  31. UnidentifiedImageError: cannot identify image file 'Rec-000026_16bit_counts.tif'
  32.  
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement