Hi,<br><br>I'm using FWTools 2.10 on Windows. I'm trying to access an ENVI file through Python. I have two files: my_file.envi and my_file.envi.hdr<br><br>Here's a code snippet:<br><br>if __name__ == '__main__':<br>
<br> input_file = "my_file.envi"<br> gdal.AllRegister()<br> argv = gdal.GeneralCmdLineProcessor( sys.argv )<br><br> dataset = gdal.Open(input_file, GA_ReadOnly)<br><br><br>When I do this I get a message saying "my_file.envi" is not a supported file format. If I try to use "my_file.envi.hdr" I get a message telling me to use "my_file.envi" If I strip off the .envi everything works fine. Is there a way to make gdal.Open() work correctly with the .envi in the filenames?<br>
<br>Thanks much,<br>-Jeff<br>