I needed a routine to read a tiff using python. I used the suggestiom by Michael Brennan at Working with TIFFs (import, export) in Python using numpy
import matplotlib
import matplotlib.pyplot as plt
I = plt.imread('ASTGTM_N26E093_num.tif')
print I
I get a runtime error : Unknown Image mode
File "img1.py", line 10, in <module>
I = plt.imread('ASTGTM_N26E093_num.tif')
File "/usr/lib64/python2.6/site-packages/matplotlib/image.py", line 776, in imread
im = pilread()
File "/usr/lib64/python2.6/site-packages/matplotlib/image.py", line 767, in pilread
return pil_to_array(image)
File "/usr/lib64/python2.6/site-packages/matplotlib/image.py", line 853, in pil_to_array
raise RuntimeError('Unknown image mode')
RuntimeError: Unknown image mode
Any suggestions??