gis-tools-ts - v0.6.0
    Preparing search index...

    Function parseGrib2Section0

    • SECTION 0 - INDICATOR SECTION

      This section serves to identify the start of the record in a human readable form, indicate the total length of the message, and indicate the Edition number of GRIB used to construct or encode the message. For GRIB2, this section is always 16 octets long.

      Parameters

      • section: Reader

        the 16 byte metadata section

      Returns {
          discipline: { code: number; description: string };
          gribEdition: number;
          gribEncoded: string;
          gribLength: number;
          length: number;
          sectionName: "Indicator Section";
          sectionNumber: number;
      }

      • a parsed explination of the file
      • discipline: { code: number; description: string }

        Discipline Table 0.0

      • gribEdition: number

        Edition number - 2 for GRIB2

      • gribEncoded: string

        GRIB string encoded

      • gribLength: number

        Total length of GRIB message in octets (All sections)

      • length: number

        Length of GRIB section (Always 16 for Section 0)

      • sectionName: "Indicator Section"

        Name of Grib section

      • sectionNumber: number

        Number of GRIB section