Skip Navigation Links 
NOAA logo - Click to go to the NOAA home page National Weather Service   NWS logo - Click to go to the NWS home page
Climate Prediction Center

About Us
   Our Mission
   Who We Are

Contact Us
   CPC Information
   CPC Web Team

HOME > Monitoring_and_Data > Oceanic and Atmospheric Data > Reanalysis: Atmospheric Data > wgrib2-set_metadata_str

wgrib2: -set_metadata_str


The -set_metadata_str "string" option is similar to the older -set_metadata FILE option. Instead of reading the metadata from a file, the metadata is on the command line. The latter option is generally more useful as each grib message can have its own set of metadata. The former option is only useful for specifying the metadata for a single grib message. The -set_metadata_str option was added to facilitate the creation of an "callable wgrib2" API for writing grib2. See -set_metadata for the format of the metadata string.


-set_metadata_str "metadata"
metadata is a string 


sh-4.1$ wgrib2 small.grb2  -set_metadata_str "1:0:d=2001020304:TMP:10 mb:anl:"
1:0:d=2001020304:TMP:10 mb:anl:ENS=+19

See also: -set_metadata,

NOAA/ National Weather Service
National Centers for Environmental Prediction
Climate Prediction Center
5830 University Research Court
College Park, Maryland 20740
Climate Prediction Center Web Team
Page last modified: April 4, 2016
Disclaimer Privacy Policy