Re: McIdas Image Plugin

Fredrik Lundh <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
2010/6/17 Reymer Antonio Vargas Solano <[email protected]>:
> Hello
>
>  I trying to use the McIdasImagePlugin.py, We have a lot of old McIdas area
> files on some disc, and we are trying to get information about the files. so
> I'm trying to write an script get information about the files, for e.g the
> original date, and the band of the image, but I need help, do you have the
> "README" file of the plugin?? or some idea to get the information..

The module is part of the PIL library.  Just open the files as usual,
and inspect the image properties:

>>> from PIL import Image
>>> im = Image.open("some mcidas file")
>>> print im.mode
>>> print im.size
>>> print im.info
>>> im.save("copy.png")

Note that it's a very basic reader; it only supports basic 8/16/32-bit
images, and I don't think it extracts any metadata beyond pixel format
and size.

</F>
_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.