Opened 8 years ago

Closed 7 years ago

#5144 closed enhancement (fixed)

GDAL Grib2 Driver: Add Product Definition MetaData

Reported by: philippelamontagne Owned by: warmerdam
Priority: normal Milestone: 1.11.1
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: grib grib2 driver
Cc: Kyle Shannon

Description

Hi,

I noticed the product definition metadata (GRIB_PDS_TEMPLATE_NUMBERS) is only available with the first band of a multi-bands GRIB2 file. It would make sense to have this information available for all bands of the file.

Thanks for the great work you are all doing,

Philippe

See the output of gdalinfo:

gdalinfo test.grb2

Driver: GRIB/GRIdded Binary (.grb) Files: test.grb2 Size is 96, 100 Coordinate System is: GEOGCS["Coordinate System imported from GRIB file",

DATUM["unknown",

SPHEROID["Sphere",6371229,0]],

PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]]

Origin = (178.258356826315780,1.822636363636364) Pixel Size = (0.027292347368421,-0.027272727272727) Corner Coordinates: Upper Left ( 178.2583568, 1.8226364) (178d15'30.08"E, 1d49'21.49"N) Lower Left ( 178.2583568, -0.9046364) (178d15'30.08"E, 0d54'16.69"S) Upper Right ( 180.8784222, 1.8226364) (180d52'42.32"E, 1d49'21.49"N) Lower Right ( 180.8784222, -0.9046364) (180d52'42.32"E, 0d54'16.69"S) Center ( 179.5683895, 0.4590000) (179d34' 6.20"E, 0d27'32.40"N) Band 1 Block=96x1 Type=Float64, ColorInterp?=Undefined

Description = 5000[Pa] ISBL="Isobaric surface" Metadata:

GRIB_COMMENT=Temperature [K] GRIB_ELEMENT=TMP GRIB_FORECAST_SECONDS=0 sec GRIB_PDS_PDTN=0 GRIB_PDS_TEMPLATE_NUMBERS=0 0 255 255 255 0 0 0 1 0 0 0 0 100 0 0 0 19 136

55 0 0 0 0 0

GRIB_REF_TIME= 1367971200 sec UTC GRIB_SHORT_NAME=5000-ISBL GRIB_UNIT=[K] GRIB_VALID_TIME= 1367971200 sec UTC

Band 2 Block=96x1 Type=Float64, ColorInterp?=Undefined

Description = 10000[Pa] ISBL="Isobaric surface" Metadata:

GRIB_COMMENT=Temperature [K] GRIB_ELEMENT=TMP GRIB_FORECAST_SECONDS=0 sec GRIB_REF_TIME= 1367971200 sec UTC GRIB_SHORT_NAME=10000-ISBL GRIB_UNIT=[K] GRIB_VALID_TIME= 1367971200 sec UTC

Band 3 Block=96x1 Type=Float64, ColorInterp?=Undefined

Description = 15000[Pa] ISBL="Isobaric surface" Metadata:

GRIB_COMMENT=Temperature [K] GRIB_ELEMENT=TMP GRIB_FORECAST_SECONDS=0 sec GRIB_REF_TIME= 1367971200 sec UTC GRIB_SHORT_NAME=15000-ISBL GRIB_UNIT=[K] GRIB_VALID_TIME= 1367971200 sec UTC

Change History (2)

comment:1 Changed 7 years ago by Kyle Shannon

Cc: Kyle Shannon added

comment:2 Changed 7 years ago by Kyle Shannon

Milestone: 1.11.1
Resolution: fixed
Status: newclosed
Version: unspecifiedsvn-trunk

added in r27666. GRIB_PDS_ALL_BANDS=NO config option will disable it.

Note: See TracTickets for help on using tickets.