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: | |
---|---|---|---|
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)
Change History (7)
comment:2 by , 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 , 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 , 19 years ago
Attachment: | f64-gdal-cvs-2005.08.19.zip added |
---|
Updated against CVS snapshot 2005-08-19
comment:4 by , 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.