Opened 12 years ago

Closed 12 years ago

#2549 closed defect (invalid)

gdalinfo does not display enough info to choose a band in a grib dataset

Reported by: winkey Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords:


only psInv->longFstLevel is reported, to do anything else but guess a band you need, at the least, sInv->element and psInv->shortFstLevel

simply put element and comment are "what", shortFstLevel and longFstLevel are "where"

Change History (3)

comment:1 Changed 12 years ago by Even Rouault

In GDAL 1.6.0dev :

    SetMetadataItem( "GRIB_ELEMENT", psInv->element );
    SetMetadataItem( "GRIB_SHORT_NAME", psInv->shortFstLevel );

comment:2 Changed 12 years ago by winkey

I saw that in the code but could not understand why the data is not printed out.

from gdalinfo...

Band 1 Block=720x1 Type=Float64, ColorInterp?=Undefined

Description = 1000[Pa] ISBL="Isobaric surface"

from degrib... MsgNum?, Byte, GRIB-Version, elem, level, reference(UTC), valid(UTC), Proj(hr) 1.0, 0, 2, HGT="Geopotential height [gpm]", 1000-ISBL, 05/19/2008 06:00, 05/19/2008 06:00, 0.00

Band 1 would be the elevation of 10 mb of pressure.

Also note that the band numbers do not translate to grib message numbers because grib messages can have sub messages. band 1 was easy though.

comment:3 Changed 12 years ago by winkey

Resolution: invalid
Status: newclosed

ok i had an old copy installed to another prefix, sorry about that


Note: See TracTickets for help on using tickets.