27.03.2013 Views

Guide to WMO Table Driven Code Forms

Guide to WMO Table Driven Code Forms

Guide to WMO Table Driven Code Forms

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Octet No. Contents<br />

1-4 Length of section in octets (nn)<br />

5 Number of Section (“5”)<br />

6-9 Number of data points where one or more values are specified in Section 7<br />

when a bit map is present, <strong>to</strong>tal number of data points when a bit map is<br />

absent<br />

10-11 Data Representation Template Number (see code <strong>Table</strong> 5.0)<br />

12-nn Data Representation Template (see Template 5.X, where X is the Data<br />

Representation Template Number given in octets 10-11)<br />

We will assume the value in octets 10 - 11 is 0, indicating Data Representation Template 5.0 is <strong>to</strong><br />

be used. <strong>Code</strong> <strong>Table</strong> 5.0 indicates this corresponds <strong>to</strong> grid point data - simple packing. Data<br />

Representation Template 5.0 uses octets 12 – 21 <strong>to</strong> describe this type of data representation, and<br />

what the contents of those octets are. We now insert Data Representation Template 4.0 in<strong>to</strong><br />

octets 12 - xx. The contents of the Data Representation Section then become:<br />

Octet No. Contents<br />

1-4 Length of section in octets (nn)<br />

5 Number of Section (“5”)<br />

6-9 Number of data points where one or more values are specified in Section 7<br />

when a bit map is present, <strong>to</strong>tal number of data points when a bit map is<br />

absent<br />

10-11 Data Representation Template Number (see code <strong>Table</strong> 5.0)<br />

12-15 Reference value (R) (IEEE 32-bit floating-point value)<br />

16-17 Binary Scale Fac<strong>to</strong>r (E)<br />

18-19 Decimal Scale Fac<strong>to</strong>r (D)<br />

20 Number of bits used for each packed value for simple packing, or for each<br />

group reference value for complex packing or spatial differencing<br />

21 Type of original field values (see <strong>Code</strong> <strong>Table</strong> 5.1)<br />

The use of R, E, and D in grid point data - simple packing and the IEEE representation of R, as<br />

well as the organization of the Data Representation Section for other compression schemes<br />

allowed in GRIB2, are discussed in Section 2.3 of this Layer. The type of original field values is<br />

given by octet 21 and defined by <strong>Code</strong> <strong>Table</strong> 5.1:<br />

<strong>Code</strong> <strong>Table</strong> 5.1: Type of original field values<br />

<strong>Code</strong> figure Meaning<br />

0 Floating point<br />

1 Integer<br />

2-191 Reserved<br />

192-254 Reserved for local use<br />

255 Missing<br />

Thus, it is currently possible <strong>to</strong> define only floating point or integer original field values. There is,<br />

however, ample space for other options <strong>to</strong> be added in the future.<br />

2.2.4 Data Templates<br />

The Data Section contains the data values themselves. As noted in Section 2.1.8 above, the<br />

contents of Section 7 are:<br />

Octet No. Contents<br />

1-4 Length of section in octets (nn)<br />

34

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!