UNPKG

s2-tools

Version:

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

38 lines 1.48 kB
import type { Reader } from '../../..'; export * from './templates'; /** The output of `parseGrib2Section5` */ export type Grib2DataRepresentationSection = ReturnType<typeof parseGrib2Section5>; /** * Data Representation Section * * [Read more...](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_sect5.shtml) * @param section - The raw section data to parse * @returns - Parsed Data Representation Information */ export declare function parseGrib2Section5(section: Reader): { /** Number of GRIB section */ sectionNumber: number; /** Name of Grib section */ sectionName: "Data Representation Section"; /** Length of GRIB section */ length: number; /** Number of data points where one or more values are specified in Section 7 when a bit map is present, total number of data points when a bit map is absent. */ numberOfDataPoints: number; /** Data representation template number (See [Table 5.0](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table5-0.shtml)) */ dataRepresentationTemplate: { code: number; description: string; }; /** Data representation built using a template */ dataRepresentation: { referenceValue: number; binaryScaleFactor: number; decimalScaleFactor: number; numberOfBits: number; originalType: { code: number; description: string; }; }; }; //# sourceMappingURL=index.d.ts.map