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_prob
 

wgrib2: -set_prob

set values for Product Definition Templates 4.5 and 4.9

Introduction

The -set_prob option converts some common non-probability Product Definition Template (PDT) to a probability PDT. Then it adds the metadata for the probability part of the PDT.

Step 1:
  If current PDT is 0,1,2,3,4 or 6, then the PDT is converted to 6 (4.6)
  using the -set_pdt +5 option.

  If current PDT is 8,10,11,12,13,14 or 15, the he PDT is converted to 9 (4.9)
  using the -set_pdt +9 option.

Step 2:
  If the current PDT does not have Code Table 4.9 entry, print a warning
  and return.

Step 3:
  Fill in the various probability metadata using arguments to the option.

  X=Forecast probability number
  Y=Total number of forecast probabilities
  Z=Probability Type (see Code Table 4.9)
  A=lower limit
  B=upper limit

Usage

-set_prob X Y Z A B
 where X, Y, Z, A and B are defined above
 for wgrib2 v3.0.0+, X, Y, Z, A or B can have the value "".
  When the value "" is used, the previous value is not changed.

Example

$ wgrib2 test2.grb 
1:0:d=2009060500:TMP:2 m above ground:180 hour fcst:ENS=+19
$ wgrib2 -set_prob 10 20 2 10.1 10.4  test2.grb 
1:0:d=2009060500:TMP:2 m above ground:180 hour fcst:prob >=10.1 <10.4

X=10 Forecast probabilty number
Y=20 Total number of forecat probabilities (Number of intervals for probability forecasts?)
Z=2  Code Table 4.9
A=10 Lower limit (may not be used depending on Code Table 4.9)
B=10 Upper limit (may not be used depending on Code Table 4.9)

See also: -prob,


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: Dec 8, 2015, Aug 23, 2019
Disclaimer Privacy Policy