Opened 20 years ago

Last modified 20 years ago

#637 closed defect (fixed)

ENVI file not read properly

Reported by: beinlich@… Owned by: warmerdam
Priority: high Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords:
Cc: Markus Neteler

Description

Frank,

we have a small ENVI file which is not read properly. It
looks like junk in GDAL but ENVI itself is able to read
it (it's a LANDSAT subscene).
May I ask you to look into this problem?

The file is uploaded.

Best regards

 Axel Beinlich

Attachments (1)

rosario123_envi_bug.tar.gz (989.0 KB ) - added by beinlich@… 20 years ago.
LANDSAT subscene in ENVI format, not read properly by GDAL

Download all attachments as: .zip

Change History (2)

by beinlich@…, 20 years ago

Attachment: rosario123_envi_bug.tar.gz added

LANDSAT subscene in ENVI format, not read properly by GDAL

comment:1 by warmerdam, 20 years ago

Axel,

I have determined that this file is compressed.  The "file compression = 1" 
line in the .hdr indicates this.  GDAL currently cannot handle uncompressing
the files on the fly.  What I have done is add a warning the open function to
give folks a clue what is happen.   You can uncompress the file manually like
this:

1) mv rosario123.dat rosario123.dat.gz
2) gzip -d rosario123.dat.gz
3) edit rosario123.hdr and change the "file compression" flag value to 0.

If you are on windows it may be a bit tricky getting a gzip executable.  You
could install Cygwin but that is quite a bit just for this one thing.  If you
just need this one file I can send you the file decompressed.


Note: See TracTickets for help on using tickets.