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

wgrib2: -check_pdt_size


Wgrib2 v3.0.1 will check the size of the Product Definition Template (PDT, Section 4). If the PDT is wrong size, wgrib2 will exit with a delayed fatal error. The fatal error is delayed so the user can investigate the contents of the bad grib message. Note that it is possible to seg fault because Section 4 is a different size than expected, and the rest of the grib message may be corrupted.

You may skip the pdt size check using the option -check_pdt_size 0. You would use this option if wgrib2 calculates the incorrect size of Section 4.


-check_pdt_size    0 disable PDT size check
                   1 enable  PDT size check


$ wgrib2 png.grb2 -check_pdt_size 0
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 created: Nov 24, 2020
Disclaimer Privacy Policy