UNPKG

s2-tools

Version:

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

35 lines 1.45 kB
import type { Reader } from '../..'; import type { Grib2BitMapSection, Grib2DataRepresentationSection, Grib2DataSection, Grib2EndSection, Grib2IdentificationSection, Grib2IndicatorSection, Grib2LocalUseSection, Grib2ProductDefinitionSection, GridDefinitionSection } from '.'; export * from './0'; export * from './1'; export * from './2'; export * from './3'; export * from './4'; export * from './5'; export * from './6'; export * from './7'; export * from './8'; export * from './other'; /** A parsed GRIB Section */ export type Grib2Sections = { indicator?: Grib2IndicatorSection; identification?: Grib2IdentificationSection; local?: Grib2LocalUseSection; gridDefinition?: GridDefinitionSection; productDefinition?: Grib2ProductDefinitionSection; dataRepresentation?: Grib2DataRepresentationSection; bitMap?: Grib2BitMapSection; data?: Grib2DataSection; end?: Grib2EndSection; }; /** * @param gribChunk Buffer containing individual GRIB definition * @returns Array of Section Buffers where the index of the item corresponds to the section number. If a section is missing, it will be represented as null */ export declare function splitSectionChunks(gribChunk: Reader): Grib2Sections; /** * @param section Buffer containing GRIB Section data * @returns Section number of the input GRIB Section data */ export declare function getSectionNumber(section: Reader): number; //# sourceMappingURL=index.d.ts.map