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 -colon

wgrib2: -colon


The wgrib2 inventory consists of many fields separated by a colon (:). For example,

    $ wgrib2 small.grb2
    1:0:d=2009060500:HGT:200 mb:180 hour fcst:ENS=+19
You can change the field separator from a colon to any string. For example,
    $ wgrib2 -colon "[--]" small.grb2
    1:0[--]d=2009060500[--]HGT[--]200 mb[--]180 hour fcst[--]ENS=+19

You may want to use the -colon option because you are going to be parsing the inventory with another program that uses a different field separator. (CSV file?).


-colon string


    $ wgrib2 small.grb2  -colon ':,"' -t  -colon '","'  -var -lev -ftime -misc -colon '' -print '"'
    1:0:,"d=2009060500","HGT","200 mb","180 hour fcst","ENS=+19"
See also: -print,

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: September 27, 2017
Disclaimer Privacy Policy