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_pdt
 

wgrib2: -set_pdt

Introduction

Section 4 contains the product defintion. The structure of the product definition is described by the product defintion template (PDT). There are many different PDTs but only some are in common usage. The -set_pdt option changes the current PDT to another. It often used to change an unsupported PDT to a supported PDT. For example, a certain graphic program may not support PDT=30 and you may need to change it to a supported PDT. To retain metadata, prefix the PDT with a plus sign. The amount of metadata copied depends on the version of wgrib2.

Usage

-set_pdt X      X=product defintion template number, default size, PDT is cleared
-set_pdt +X     X=product defintion template number, copy metadata from current PDT
                  size may vary depending on current PDT
-set_pdt X:Y    X=product defintion template number, Y=byte size of PDT if variable-sized PDT
                  PDT is cleared
-set_pdt +X:Y   X=product defintion template number, Y=byte size of PDT if variable-sized PDT
                  copy metadata
                Note: using the wrong value of Y can produce errors

Example

wgrib2 prior to v2.0.2
$ wgrib2 p.grb -set_pdt 0
1:0:d=2010111618:var discipline=0 center=7 local_table=0 parmcat=255 parm=255:no_level:-1 missing fcst:
$ wgrib2 p.grb -set_pdt +0
1:0:d=2010111618:PRMSL:no_level:-1 missing fcst:

wgrib2 v2.0.2
$ wgrib2 png.grb
1:4:d=2009060500:RH:2 m above ground:330 hour fcst:std dev
$ wgrib2 png.grb -set_pdt 0
1:4:d=2009060500:var discipline=0 center=7 local_table=1 parmcat=255 parm=255:no_level:-1 missing fcst:
$ wgrib2 png.grb -set_pdt +0
1:4:d=2009060500:RH:2 m above ground:330 hour fcst:


See also: -Sec4, -code_table_4.0, -pdt

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 last modified: July 30, 2014
Disclaimer Privacy Policy