[netcdf-java] False positive from ucar.nc2.grib.grib1.Grib1Iosp

Hi,

I have received a a false positive from GRIB1 IOSP:
ucar.nc2.grib.grib1.Grib1Iosp

the attached file is a Netcdf4 but the GRIB1 IOSP is claiming as Grib1 type file:
http://meteo.unican.es/droppings/antonio/Grib1IOSP_FalsePositive.nc

Regards

Antonio

P.S.: The reason is because in the first 16K exists the set of "GRIB" char and a value of 1 in the 8th byte offset.

https://github.com/Unidata/thredds/blob/master/grib/src/main/java/ucar/nc2/grib/grib1/Grib1RecordScanner.java#L67-L83


--
--
Antonio S. Cofiño
Grupo de Meteorología de Santander
Dep. de Matemática Aplicada y
        Ciencias de la Computación
Universidad de Cantabria
http://www.meteo.unican.es

Attachment: bingGvIJSMvmA.bin
Description: Binary data

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