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

wgrib2: -set_grib_type

Introduction

wgrib2 can write grib files by either copying an existing packed grib message (-grib) or by taking floating point values and packing them into a new grib message. (For example, -grib_out, -small_grib, -ij_small_grib, and -wind_speed). For the latter, one has a choice of packing methods. Generally methods that are faster methods create larger files and slower methods make smaller files. For fields with no undefined values, the jpeg2000 produces the smallest files. With bitmaps, one of the complex packings is usually the best (of the supported packing). Complex3 is often the best trade off between speed and compression. The (-set_grib_type) option controls the packing method.

Usage

-set_grib_type X   X=ieee,simple,complex1,complex2,complex3,jpeg

simple = no compression
complex1 = complex packing
complex2 = complex packing, pack increments
complex3 = complex packing, pack increments after linear extrapolation
jpeg = jpeg2000 compression

Example

$ wgrib2 in.grb -set_grib_type complex3 -grib_out out.grb 
The above line rewrites a file using complex3 packing.

See also: -grib_out,


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