Opened 19 years ago

Last modified 19 years ago

#858 closed defect (fixed)

ERDAS HFA compression error: '10 not supported'

Reported by: Markus Neteler Owned by: sam.gillingham@…
Priority: high Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords:
Cc:

Description

Frank,

I have processed MODIS data in GRASS and wanted to export them
to ERDAS HFA. I got an "10 not supported" error. Exporting
without compression works fine.

So I thought to compress afterwards, but again the error appears.

gdal_translate -of HFA  -co COMPRESS=YES
modis_vi250m20000321.250m_16_days_EVI.img test.img
Input file size is 1520, 1915
0...10...20.10 not supported
10 not supported
10 not supported
10 not supported
10 not supported
10 not supported
10 not supported
10 not supported
...

Not sure if this is a bug.
The file is found at (24MB, sorry):
 http://mpa.itc.it/markus/tmp/modis_vi250m20000321.250m_16_days_EVI.img

Best regards

 Markus

Attachments (3)

compress_warning.zip (2.4 KB ) - added by sam.gillingham@… 19 years ago.
Warns if can't compress type
f64_compress.zip (1.7 KB ) - added by sam.gillingham@… 19 years ago.
Patch to mimic Imagine behaviour
f64-gdal-cvs-2005.08.19.zip (1.9 KB ) - added by sam.gillingham@… 19 years ago.
Updated against CVS snapshot 2005-08-19

Download all attachments as: .zip

Change History (7)

comment:1 by warmerdam, 19 years ago

I have asked Sam Gillingham to look into this problem. 

comment:2 by sam.gillingham@…, 19 years ago

Frank, Markus,

The problem here is that the compression code does not support 64 bit floats (OK
I should make the message in hfacompress.cpp more specific). Currently the
uncompress code does not support 64 bit floats either. This is probably quite a
worthwhile thing to do although it will take a bit of work as there are some
assumptions in the code about the maximum size of the data (currently 32).
I am quite happy to look into changes in both places but it may take me some
time to come up with a solution.

Sam.

comment:3 by warmerdam, 19 years ago

Sam,

So f64 support is just missing from the compressed/uncompress related
code?  If you are up to fixing it up that's great.  If not, a better
error message would be desirable. 


by sam.gillingham@…, 19 years ago

Attachment: compress_warning.zip added

Warns if can't compress type

by sam.gillingham@…, 19 years ago

Attachment: f64_compress.zip added

Patch to mimic Imagine behaviour

by sam.gillingham@…, 19 years ago

Attachment: f64-gdal-cvs-2005.08.19.zip added

Updated against CVS snapshot 2005-08-19

comment:4 by warmerdam, 19 years ago

Patch applied, thanks!

I also added some tests for compressed support in hfa_write.py.

Note: See TracTickets for help on using tickets.