saving a TIFF

fernando sedano fersed at gmail.com
Mon Feb 15 18:55:08 CET 2010


I'm trying to save an image created from two arrays (I'm using numpy and
PIL):


n=(b4a-b3a)/(b4a+b3a);
ndvi = Image.fromarray(n)
ndvi.save("F:\Fire_scar_mapping\ILS3\ndvi_test","TIFF")

...........but I get the following error message:

IOError: [Errno 22] invalid mode ('wb') or filename:
'F:\\Fire_scar_mapping\\ILS3\ndt'

Could anybody tell me what I'm doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100215/de3abd2d/attachment.html>


More information about the Python-list mailing list