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

Section 1 contains identification information for a grib file.

Identification section

Notes:

  1. Local tables define those parts of the master table which are reserved for local use except for the case described below. In any case, the use of local tables in the messages are intended for non-local or international exchange is strongly discouraged.

  2. If octet 10 is set to 255 then only local tables are in use. In this case, the local table version number (octet 11) must not be zero nor missing.  Local tables may include entries from the entire range of the tables.

  3. If octet 11 is zero, octet 10 must contain a valid master table version number and only those parts of the tables not reserved for local use may be used.

  4. If octets 8-9 is zero, Not a sub-center, the originating/generating center is the center defined by octets 6-7.

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

Link to this section Summary

Link to this section Types

Specs

day() :: integer()

Specs

hour() :: integer()

Specs

input() :: binary()

Specs

local_version() :: integer()

Specs

minute() :: integer()

Specs

month() :: integer()

Specs

second() :: integer()

Specs

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

Specs

year() :: integer()

Link to this section Functions

Specs

parse(input()) :: t()