UNPKG

s2-tools

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

37 lines 1.42 kB
import type { Reader } from '../../..'; export * from './tables'; /** The output of `parseGrib2Section0` */ export type Grib2IndicatorSection = ReturnType<typeof parseGrib2Section0>; /** * # SECTION 0 - INDICATOR SECTION * * ## Description * 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. * * ## Links * - [Docs](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_sect0.shtml) * @param section - the 16 byte metadata section * @returns - a parsed explination of the file */ export declare function parseGrib2Section0(section: Reader): { /** Number of GRIB section */ sectionNumber: number; /** Name of Grib section */ sectionName: "Indicator Section"; /** Length of GRIB section (Always 16 for Section 0)*/ length: number; /** GRIB string encoded */ gribEncoded: string; /** Discipline [Table 0.0](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table0-0.shtml) */ discipline: { code: number; description: string; }; /** Edition number - 2 for GRIB2 */ gribEdition: number; /** Total length of GRIB message in octets (All sections) */ gribLength: number; }; //# sourceMappingURL=index.d.ts.map