Skip to content

-s — Simple Inventory

The -s option prints a simple inventory of a GRIB2 file, including byte offsets, date/time, variable name, levels, and forecast time — with minute and second precision.

$ wgrib2 myFile.grib2 -s
1:0:d=2007032600:HGT:1000 mb:anl:
2:125535:d=2007032600:HGT:1000 mb:3 hour fcst:

It is functionally equivalent to using the following options together:

wgrib2 myFile.grib2 -T -var -lev -ftime -misc yyppp

Save the Inventory to a File

It is common practice to save the inventory output to an index file using the .idx suffix:

$ wgrib2 new.grib2 -s > new.grib2.idx
1:0:d=2007032600:HGT:1000 mb:anl:
2:125535:d=2007032600:HGT:1000 mb:3 hour fcst:

Usage

-s

See also:


Description: Simple inventory with minute and second precision Subject to change

Documentation derived from: https://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/S.html