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

wgrib2: -g2clib

Introduction

Originally wgrib2 used the g2clib library for unpacking grid data section. The first break from a complete dependence on the g2clib was adding support for ieee-type grib files. Then grib1-style packing was moved from g2clib to the optimized wgrib routines. Then jpeg and png were moved from g2clib to internal routines. Now only complex packing has to be done with g2clib.

Differences as of October 2008

The NCEP encoding/decoding routines have a problem with constant fields. The routines are consistent with themselves so the problem wasn't noticed for many years. The wgrib2 internal routines have the bug fix for this problem. Note that wgrib2 still uses the g2clib for complex packing. Consequently wgrib2 still has this bug with constant fields using complex packing.

The routines are slightly faster and don't complain when a "unknown" grid template is found.

-g2clib

The -g2clib X option allows you to select the internal/g2clib decoder if the option exists. If X is 0, then internal routines are selected. If X is 1, then the g2clib are selected. You would want to use the g2clib when decoding NCEP files.

Usage

-g2clib N   N is 0 or 1

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