Opened 14 years ago

Closed 14 years ago

#3555 closed defect (fixed)

Reading GRIB2 with GDAL 1.6.3 leeds to Warning: Investigate Template 4.8 bytes 35-41

Reported by: eloiribeiro Owned by: warmerdam
Priority: normal Milestone: 1.7.3
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: gdalinfo, grb2, warning
Cc:

Description

I keep receiving this warning using GDAL (1.6.3 released 2009/11/19 on Ubuntu desktop 9.10) whith GRIB2 files:

gdalinfo file.grb2 "Warning: Investigate Template 4.8 bytes 35-41 Warning: Investigate Template 4.8 bytes 35-41 (...) Warning: Investigate Template 4.8 bytes 35-41 Warning: Investigate Template 4.8 bytes 35-41 Segmentation fault"

The strange thing is that it works fine with some GRIB2 data, like this file[1] but with some other's, from the same source[2], just won't work at all, like this one[3].

[1] http://dl.dropbox.com/u/1735137/pgbl01.gdas.T_MIN.2m.grb2 [2] http://dss.ucar.edu/datasets/ds093.2/ [3] http://dl.dropbox.com/u/1735137/ipvlnl.gdas.TMP.SFC.grb2

Change History (2)

comment:1 by Even Rouault, 14 years ago

Component: defaultGDAL_Raster
Owner: changed from gdalinfo to warmerdam

Reassigning to default owner

comment:2 by Even Rouault, 14 years ago

Milestone: 1.7.3
Resolution: fixed
Status: newclosed

Crash fixed in trunk (r19765) and in branches/1.7 (r19766)

After the fix, gdalinfo reports :

Driver: GRIB/GRIdded Binary (.grb)
Files: ipvlnl.gdas.TMP.SFC.grb2
Size is 144, 73
Coordinate System is:
GEOGCS["Coordinate System imported from GRIB file",
    DATUM["unknown",
        SPHEROID["Sphere",6371229,0]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433]]
Origin = (0.000000000000000,270.000000000000000)
Pixel Size = (2.500000000000000,-2.500000000000000)
Corner Coordinates:
Upper Left  (       0.000,     270.000) (  0d 0'0.01"E,270d 0'0.00"N)
Lower Left  (   0.0000000,  87.5000000) (  0d 0'0.01"E, 87d30'0.00"N)
Upper Right (     360.000,     270.000) (360d 0'0.00"E,270d 0'0.00"N)
Lower Right (     360.000,      87.500) (360d 0'0.00"E, 87d30'0.00"N)
Center      (     180.000,     178.750) (180d 0'0.00"E,178d45'0.00"N)
Band 1 Block=144x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
  Metadata:
    GRIB_UNIT=[K]
    GRIB_COMMENT=Temperature [K]
    GRIB_ELEMENT=TMP
    GRIB_SHORT_NAME=0-SFC
    GRIB_REF_TIME=   283996800 sec UTC
    GRIB_VALID_TIME=   283996800 sec UTC
    GRIB_FORECAST_SECONDS=0 sec
    GRIB_PDS_PDTN=8
    GRIB_PDS_TEMPLATE_NUMBERS=0 0 2 0 82 0 0 0 1 0 0 0 0 1 0 0 0 0 0 255 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 194 1 1 0 0 0 124 1 0 0 0 6 0 2 1 0 0 0 6 1 0 0 0 0
Band 2 Block=144x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
  Metadata:
    GRIB_UNIT=[K]
    GRIB_COMMENT=Temperature [K]
    GRIB_ELEMENT=TMP
    GRIB_SHORT_NAME=0-SFC
    GRIB_REF_TIME=   286675200 sec UTC
    GRIB_VALID_TIME=   286675200 sec UTC
    GRIB_FORECAST_SECONDS=0 sec
[...]
Band 371 Block=144x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
  Metadata:
    GRIB_UNIT=[K]
    GRIB_COMMENT=Temperature [K]
    GRIB_ELEMENT=TMP
    GRIB_SHORT_NAME=0-SFC
    GRIB_REF_TIME=  1257033600 sec UTC
    GRIB_VALID_TIME=  1257033600 sec UTC
    GRIB_FORECAST_SECONDS=0 sec
Band 372 Block=144x1 Type=Float64, ColorInterp=Undefined
  Description = 0[-] SFC="Ground or water surface"
  Metadata:
    GRIB_UNIT=[K]
    GRIB_COMMENT=Temperature [K]
    GRIB_ELEMENT=TMP
    GRIB_SHORT_NAME=0-SFC
    GRIB_REF_TIME=  1259625600 sec UTC
    GRIB_VALID_TIME=  1259625600 sec UTC
    GRIB_FORECAST_SECONDS=0 sec
Note: See TracTickets for help on using tickets.