Skip Navigation Links www.nws.noaa.gov 
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-grib_out
 

wgrib2: -grib_out

Introduction

The -grib_out option writes the grid values to a specified file in grib2 format. Normally you would use the -grib option as that requires less time and preserves the precision of the data. You would only use the -grib_out option when you have modified the grid point values by using the -undefine or a similar option. By default, the -grib_out stores the grid values with 12 binary bits of precision.

Usage

-grib_out file_name

Example

$ wgrib2 new.grb2 -undefine out-box -10:10 20:40 -grib_out small.grb2
1:0:d=2005082812:HGT:1000 mb:78 hour fcst:
The above routine sets all the grid points outside the 10W-10E 20N-40N to undefined and then writes the resultant field as a grib file in small.grb2. This file will be much smaller than the original field.

Hint: by proper use of the -undefine and -grib_out options, one should be able to send horizontal boundary conditions for regional models very very quickly. Imagine just sending 4 lines of horizontal boundary conditions.

Hint: gzip

See also: -text, -netcdf -spread -bin -ieee -ieee


NOAA/ National Weather Service
National Centers for Environmental Prediction
Climate Prediction Center
5200 Auth Road
Camp Springs, Maryland 20746
Climate Prediction Center Web Team
Page last modified: May 15, 2005
Disclaimer Privacy Policy