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

wgrib2: -append, -no_append


The -append and -no_append options sets/clears the append flag. The out options are expected to respect this flag when opening output files. So an -append option before writing (-text, -bin, etc) should append to a currently existing file. The -no_append directs the file to be created before use which is the default.

$ wgrib2 grb2 -d 1 -append -text all.txt -no_append -text rec.txt
The above line will append record #1 to all.txt and write record #1 to new file rec.txt


      append to output files

      over-write the output files
See also:

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: May 15, 2005
Disclaimer Privacy Policy