Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 
Table of contents Previous: XCD Processing the GRIB message Next: XCD Filing the grid in McIDAS Index

Converting GRIB codes

For users to understand GRIB messages, the decoder must change portions of them into meteorological values. For example, a value of 11 in the ninth byte of the PDS is meaningless until it is converted to temperature in degrees Kelvin. Other attributes that must be converted include the geographic location, the forecast time units, and the generating model name and originating location.

Currently, five ASCII file lookup tables are included with the McIDAS-XCD GRIB decoder for this purpose. These files are found in ~mcidas/data and begin with the characters gbtbpds as shown below.

Attribute

Section/Byte

Files

processing center

PDS/5

gbtbpds001.0v1

parameter/unit

PDS/9

gbtbpds001.2v1, gbtbpds001.2v2, gbtbpds001.2v3

forecast time

PDS/18

gbtbpds001.4v1

model

PDS/6

gbtbpds001.av1, gbtbpds001.a34v1, gbtbpds001.a60v1, gbtbpds001.a74v1, gbtbpds001.a98v1

geographic location

PDS/7

gbtbpds001.bv1, gbtbpds001.b98v1

When the decoder finds a value for one of these attributes, it checks the appropriate lookup table for information about the value. If it cannot find the information, the message is discarded.


Table of contents Previous: XCD Processing the GRIB message Next: XCD Filing the grid in McIDAS Index
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690