ExGrib.Grib2.Section3 (ex_grib v0.0.1) View Source

Section 3 contains information about grid definition.

Grid definition section

Notes:

  1. If octet 6 (source_id) is not zero, octets 15-xx (15-nn if octet 11 is zero) may not be supplied. This should be documented with all bits set to 1 in the grid definition template number.

  2. An optional list of numbers defining number of points is used to document a quasi-regular grid, where the number of points may vary from one row to another. In such a case, octet 11 is non zero and gives the number octets on which each number of points is encoded. For all other cases, such as regular grids, octets 11 and 12 are zero and no list is appended to the grid definition template.

  3. If a list of numbers defining the number of points is preset, it is appended at the end of the grid definition template ( or directly after the grid definition number if the template is missing). When the grid definition template is present, the length is given according to bit 3 of the scanning mode flag octet (length is Nj or Ny for flag value 0). List ordering is implied by data scanning.

  4. Depending on the code value given in octet 12, the list of numbers either:

    • Corresponds to the coordinate lines as given in the grid definition, or
    • Corresponds to a full circle, or
    • Does not apply.

https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_sect3.shtml

Link to this section Summary

Link to this section Types

Specs

input() :: binary()

Specs

t() :: {:ok, section(), binary()} | :error

Link to this section Functions

Specs

parse(input()) :: t()