Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way (a package or what not), to visualize a geotiff image directly in Python? I don't want to use ENVI or ArcGIS or anything else. Thank you in advance.

share|improve this question
What do you mean by 'visualize'? Do you want to see the image in the context of a coordinate system, or just view the image itself? – nagytech Jul 17 '12 at 0:00
Just the image itself. Althought a coordinate system would be nice, I'm not sure about what you mean with this but you made me think RGB coordinates. – JEquihua Jul 17 '12 at 2:22
up vote 3 down vote accepted

You can use PIL and Tkinter or other GUI framework to create a simple image viewer. If PIL is unable to read the image you could use GDAL to convert it to a suitable format before displaying it.

Here's a Tkinter example:,-Part-1/Viewing-and-Processing-Images-with-PIL/

share|improve this answer
I want to visualize REALLY simple images, made by myself, like a 500 x 500 constant matrix with salt and pepper noise. Should be pretty straight forward right? It must be a geotiff file though. ... Dammit, now I'm not sure, anyway, I'll look into what you propose, thanks a lot! – JEquihua Jul 17 '12 at 2:30

if you are interested with RS - Remote Sensing, you can check out Orfeo Toolbox here. following information from their site:

a set of algorithmic components, adapted to large remote sensing images, which allow to capitalize the methodological know how, and therefore use an incremental approach to benefit from the results of the methodological research.


i hope it helps you...

share|improve this answer
+1 This is excellent! Have you ever used Orfeo for tree cover classification? – Aaron Jul 17 '12 at 12:41
this is an opensource project... i have only checked out his capability for image processing. i have usually been using envi for now to my licence expire for enterprise works and it is really very good when u work with multi-spectral images. – Aragon Jul 17 '12 at 14:06

PIL (with a limited set of tiff file types) or ImageMagick would to the trick.

share|improve this answer

Nothing beats GDAL

from osgeo import gdal
import matplotlib.pyplot as plt
ds = gdal.Open('file.tif').ReadAsArray()

im = plt.imshow(ds)

And to do some proper mapping with projections included use cartopy

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.