spectralpython / spectral

Python module for hyperspectral image processing
MIT License
582 stars 139 forks source link

Keyword "interleave" has no effect in envi.create_image #19

Closed tboggs closed 9 years ago

tboggs commented 9 years ago

The interleave keyword has no effect when passed to envi.create_image. Currently, the only way to set the interleave is to pass it in the metadata argument. This bug was reported by Daniel Scheffler, who proposed the following fix:

... add these two lines below line 729 in the envi.py file (.../spectral/io/):

if 'interleave' in kwargs:  
    metadata['interleave'] = kwargs['interleave']