robmcmullen/peppy — Issue #832: Exporting HSI image as ENVI fails
Author: robmcmullen
Created: 2012-02-21 06:14:32+00:00
State: closed
Labels: hyperspectral

*[Trac time 20100226 181151Z]* When not specifying a specific endianness when exporting to an ENVI image, it fails with:
```
Traceback (most recent call last):
File "/opt/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 14614, in
lambda event: event.callable(*event.args, **event.kw) )
File "/home/rob/src/peppy/peppy/hsi/hsi_menu.py", line 471, in action
handler.export(filename, self.mode.cube, options=options, progress=self.updateProgress)
UnboundLocalError: local variable 'options' referenced before assignment
```