Grib2Process

From Wiki

Contents

1 Description

The generating process dictionary "process.grib2"  is used by grib2_encode and grib2_decode

to do the translation between the RPN standard file label and the GRIB2 process parameters.

 

2 Entry format


Lines with a '#' in the first column (comment lines) and empty lines are not treated. For a dictionary entry to be valid, all elements must be present and on the same line. Anything following on the line is considered as comments.

Note: "--" is used as a "Not considered" flag.

The entries wich use the "Not considered" flag have a lower matching priority (see Selection of dictionary entries; ).

An entry is composed of the following elements:

Grib section
Center  : Id of the center that produced the field (can be a value, less or equal to 255, or "--")
subcenter  : Id of the sub-center that produced the field (can be a value, less or equal to 255, or "--")
Tmpl  : Product template number (code table4.0)
ProdStat  : Production status of data (code table 1.3)
ProcData  : Type of data (code table 1.4)
TyProcess  : Type of generating process (code table 4.3)
Bgprocess  : Background generating process ID, defined by the oraginatuing cente
process  : Generating process or model ID, defined by the oraginatuing cente


RPN Standard file section
Label  : Label of record (maximum 12 characters).


 
<a name="selection">

3 Selection of dictionary entries

The dictionary entry is selected following these rules:

  • A weight is given to each entry
  • The entry with the largest weight is selected
  • The dictionary is scanned from top to bottom, so if entries have the same weigth, the one encountered first is selected
  • The total weight of an entry is obtain by adding the weight to each of its elements
  • Entry elements with a value of "--" are ignored
  • If an element's value does not match the record's corresponding value, the entry is rejected

Weight of each element:

Encoding (STDF -> GRIB)
Decoding (GRIB -> STDF)
center 4
subcenter 2
label 1

center 4
subcenter 2
process 1



4 Example

Here are a few example entries. Lines beginning with # are comment. they help keeping track of entry elements.

#
# Center  Sub-center Tmpl  ProdStat ProcData  TyProcess BgProcess Process   WMO    Label      Comments
#                    (4.0) (1.3)    (1.4)     (4.3)                      center  /------\
#
#RDPS-CGSL (Regional Deterministic Prediction System - Coupled Gulf of St. Lawrence)
  54       0          00     1        1         2       245       245      CWAO  GF0573RP  CMC Operational Test Products (Parallel)
  54       0          00     0        1         2       56        56       CWAO  GF0573RN  CMC Operational Products 
#
#
#RDPA - Regional Deterministic Precipitation Analysis - Operational
#
# Center  Sub-center Tmpl  ProdStat ProcData  TyProcess BgProcess Process   WMO    Label      Comments
#                    (4.0) (1.3)    (1.4)     (4.3)                      center  /------\
  54       0          00     0        0         0       30        30       CWAO  CR150OIN220  CMC operational system
#
#
#RDPS - Regional Deterministic Prediction System - Operational
#
# Center  Sub-center Tmpl ProdStat ProcData  TyProcess BgProcess Process   WMO    Label     Comments
#                   (4.0)  (1.3)   (1.4)      (4.3)                      center /------\
  54       0          00    0        2         2       36        36       CWAO  R1580V0N CMC operational system
  54       0          00    0        2         2       36        36       CWAO  ESWEATX  CMC operational system
  54       0          00    0        2         2       36        36       CWAO  WNDCHL   CMC operational system
  54       0          00    0        2         2       36        36       CWAO  ETAINDEX CMC operational system
  54       0          00    0        2         2       36        36       CWAO  ENERGI2  CMC operational system
  54       0          00    0        2         2       36        36       CWAO  HELICITE CMC operational system


#What about gulf coupled model? 

#
#GDPS - Global Deterministic Prediction System - Operationnel
#
# Center  Sub-center Tmpl ProdStat ProcData  TyProcess BgProcess Process   WMO    Label     Comments
#                   (4.0)  (1.3)   (1.4)      (4.3)                      center /------\
  54       0          00    0        2         2       47        47       CWAO  G133K80N CMC operational system
  54       0          00    0        2         2       47        47       CWAO  GSR1D33N CMC operational system
#
# GEPS - Global Ensemble Prediction System - Operational - pre strato2b
# Center  Sub-center Tmpl  ProdStat ProcData TyProcess BgProcess Process   WMO    Label     Comments
#                    (4.0) (1.3)    (1.4)     (4.3)                      center /------\
  54       0          01    0        3         4       70        70       CWAO  E1090GMN000 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN001 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN002 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN003 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN004 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN005 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN006 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN007 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN008 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN009 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN010 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN011 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN012 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN013 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN014 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN015 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN016 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN017 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN018 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN019 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1090GMN020 CMC operational system
#
# PARALLEL GEPS 2.0.1 (strato2b) - Global Ensemble Prediction System 
# Center  Sub-center Tmpl  ProdStat ProcData  TyProcess BgProcess Process   WMO    Label     Comments
#                    (4.0) (1.3)    (1.4)     (4.3)                      center /------\
  54       0          01    1        3         4       71        71       CWAO  E1060GMP000 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP001 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP002 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP003 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP004 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP005 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP006 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP007 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP008 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP009 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP010 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP011 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP012 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP013 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP014 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP015 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP016 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP017 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP018 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP019 CMC parallel system
  54       0          01    1        4         4       71        71       CWAO  E1060GMP020 CMC parallel system
#
# OPERATIONAL GEPS 2.0.1 (strato2b) system becoming ops June 2011
# GEPS - Global Ensemble Prediction System - Operational
# Center  Sub-center Tmpl  ProdStat ProcData TyProcess BgProcess Process   WMO    Label     Comments
#                    (4.0) (1.3)    (1.4)     (4.3)                      center /------\
  54       0          01    0        3         4       70        70       CWAO  E1060GMN000 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN001 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN002 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN003 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN004 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN005 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN006 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN007 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN008 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN009 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN010 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN011 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN012 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN013 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN014 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN015 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN016 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN017 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN018 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN019 CMC operational system
  54       0          01    0        4         4       70        70       CWAO  E1060GMN020 CMC operational system
#
# GEAS - Global EnKF Analysis System - Operational and Parallel
# Center  Sub-center Tmpl  ProdStat ProcData TyProcess BgProcess Process   WMO    Label     Comments
#                    (4.0) (1.3)    (1.4)     (4.3)                      center /------\
  54       0          01    0        4         4       72        72       CWAO  E2090AVNALL CMC operational system
  54       0          01    0        4         4       72        72       CWAO  E2AVGANNALL CMC operational system
#
  54       0          01    1        4         5       73        73       CWAO  E2090AVPALL CMC parallel system
  54       0          01    1        4         5       73        73       CWAO  E2AVGANPALL CMC parallel system
#
# Default Process (no Etiket)
# Center  Sub-center Tmpl  ProdStat ProcData TyProcess BgProcess Process   WMO    Label     Comments
#                    (4.0) (1.3)    (1.4)     (4.3)                      center /------\
  54       0          01    0        4         4       45        45       CWAO  - ------    CMC system unidentified GPN