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
|