GRIB2 - MDL LOCAL USE TEMPLATE 2.1

Local use - MDL template 1

Created 03/08/2010


Octet Number Content
1-4
Length of the section in octets (N)
5
Number of the section (2)
6
MDL Section 2 template number (1)
7-8
Total number of data groups in the local use section
9-12
Number of values in first group of local use data
13-16
Reference value of first group of data (R) (IEEE 32-bit floating-point value)
17-18
Decimal scale factor (D)
19
Number of bits to pack each value of the first group of data with
20
Type of data in first group ("0"=floating point, "1"=integer)
21-N
The first group of data packed using the simple packing method

Notes:

1.  Un-encoded value = (R + encoded value) / 10D.

2.  The encoded values are treated differently based on the parameter and category number.   The typical method is to store text as a set of ASCII integers with a trailing 0 to indicate the end of a row of a table.  As of 1/29/2010 this is done for GMOS Weather, NDFD Weather and NDFD Hazards.  For more details see:

* Gridded MOS GRIB2 Encoding Details: MDL Use of Local Use Section
* GRIB2 Encoding Details for the NWS Digital Forecast Database
* NDFD and Weather



Back