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 3 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 change 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. Changing the PDT will lose some of the metadata but will allow the graphics program to process the grib file.

Usage

-set_pdt X or
-set_pdt X:Y   X=product defintion template number, Y=byte size of PDT if variable-sized PDT
               if X has a plus sign, some metadata is copied from the old PDT

Example

$ 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_set +0
1:0:d=2010111618:PRMSL:no_level:-1 missing fcst:
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 last modified: May 15, 2005
Disclaimer Privacy Policy