Ticket #2313 (assigned enhancement)

Opened 4 months ago

Last modified 3 months ago

grib/grib2 metadata

Reported by: leigh Assigned to: warmerdam (accepted)
Priority: normal Milestone: 1.6.0
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: grib
Cc:

Description (Last modified by warmerdam)

Need gdal grib driver to pull out more metadata information

We need band meta data to display:

  • Band #
  • Product code(octet sequence)
  • Product name
  • Time(time period)
  • Type(surface,sea level etc)
  • The data (temp,wind speed,snow depth etc)[such as 15mph]
  • Units of the data(meters,feet,degrees(C or F or K),Pascals etc)

Change History

04/11/08 09:22:21 changed by warmerdam

  • keywords set to grib.
  • status changed from new to assigned.
  • component changed from default to GDAL_Raster.
  • description changed.
  • milestone set to 1.6.0.

04/11/08 09:22:50 changed by warmerdam

  • description changed.

04/11/08 10:45:16 changed by warmerdam

Leigh,

I have modified the code to attach the following information the "inventory" structure in the degrib library to each band. I think this covers several of your items. But I'm not clear on what you want for "The data" and whether these cover "type" and "product name". The high level api does not expose the raw product code octet sequence, but I should be able to drill down and get it if it is needed.

    GRIB_UNIT=[gpm]
    GRIB_COMMENT=Geopotential height [gpm]
    GRIB_ELEMENT=HGT
    GRIB_SHORT_NAME=1000-ISBL
    GRIB_REF_TIME=  1118707200 sec UTC
    GRIB_VALID_TIME=  1118710800 sec UTC
    GRIB_FORECAST_SECONDS=3600 sec

Updates applied in trunk (r14255).