[netcdf-java] uncompressed HDF4 causes error...

Hi,

I'm getting this error trying to use the Java-NetCDF library to read a
purportedly uncompressed HDF4 file:

     [java] java.lang.IllegalStateException: unknown compression type =0
[java] at ucar.nc2.iosp.hdf4.H4iosp$DataChunk.getByteBuffer(H4iosp.java:473) [java] at ucar.nc2.iosp.LayoutBBTiled.hasNext(LayoutBBTiled.java:128)
     [java]     at ucar.nc2.iosp.IospHelper.readData(IospHelper.java:314)
[java] at ucar.nc2.iosp.IospHelper.readDataFill(IospHelper.java:283)
     [java]     at ucar.nc2.iosp.hdf4.H4iosp.readData(H4iosp.java:137)
     [java]     at ucar.nc2.NetcdfFile.readData(NetcdfFile.java:1743)
     [java]     at ucar.nc2.Variable._read(Variable.java:990)
     [java]     at ucar.nc2.Variable.read(Variable.java:789)
     [java]     at ucar.nc2.Variable.read(Variable.java:763)
Maybe compression type=0 just means 'no compression'?

the file:

ftp.ssec.wisc.edu/pub/incoming/MYD021KM.A2008349.1800.005.2009329084841.hdf_unpacked

If there's a fix, can it also go into ncIdv.jar?

Tom



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: