Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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? –  Geoist 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

4 Answers 4

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: http://codeidol.com/python/python3/A-Tkinter-Tour,-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

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

share|improve this answer

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.

orfeo

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

Your Answer

 
discard

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.