This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

GRIB (.grb, .grib)

GRIB scientific data file format.
Self-describing format for exchanging scientific data.
Commonly used in meteorology to store historical and forecast weather data.
Represents numerical weather prediction output (NWP).
GRIB is an acronym derived from Gridded Binary.
Binary file format.
Standardized by the World Meteorological Organization's Commission for Basic Systems.
  • Import supports Versions 1 and 2 of the GRIB format.
  • Import imports a GRIB file, returning the names of the datasets stored in the file.
  • Import returns a list of strings representing the names of all datasets contained in the file.
  • Import imports the specified element from a GRIB file.
  • Import imports multiple elements.
  • See the reference pages for full general information on Import.
"Elements"list of elements and options available in this file
"Rules"full list of rules for each element and option
"Options"list of rules for options, properties, and settings
  • Data representation elements:
"Data"all datasets imported as a list of arrays
"Datasets"names of all datasets
  • Import by default uses the element for the GRIB format.
  • Specifying and selecting datasets:
"Datasets",nn^(th) dataset
"Datasets",datasetnamed dataset
  • Meta-information elements:
"Annotations"meta-information for each dataset
"DataFormat"type used to represent each dataset
"Dimensions"data dimensions of each dataset
"Metadata"general meta-information as a list of rules
Get the names of datasets stored in a GRIB file:
Import a dataset:
Render the imported data as an image:
Read meta-information from a GRIB file:
Get the names of datasets stored in a GRIB file:
In[1]:=
Click for copyable input
Out[1]=
 
Import a dataset:
In[1]:=
Click for copyable input
Render the imported data as an image:
In[2]:=
Click for copyable input
Out[2]=
 
Read meta-information from a GRIB file:
In[1]:=
Click for copyable input
Out[1]=