pywgrib2_xr.load_inventory

pywgrib2_xr.load_inventory(file, directory=None)[source]

Retrieves inventory from a file.

Parameters
  • file (str) – GRIB file path.

  • directory (str, optional) – Directory of the inventory file, if not collocated with GRIB2 file. Default is None.

Returns

inventory – List of MetaData for all messages in a GRIB2 file. In case of an error, None is returned.

Return type

list