UNPKG

vgrib2

Version:

[![npm version](https://badge.fury.io/js/vgrib2.svg)](https://badge.fury.io/js/vgrib2)

27 lines (26 loc) 1.06 kB
import { Buffer } from 'buffer/'; import { Sections, SectionValues } from './types/sections'; /** * * @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 const splitSectionChunks: (gribChunk: Buffer) => Array<Buffer | null>; /** * * @param sections Array of GRIB Section Buffers * @returns Array of Parsed Sections where index corresponds to section number */ export declare const parseSections: (sections: Array<Buffer | null>) => SectionValues; /** * * @param parsedSections Array of Parsed Sections * @returns Array of Sections with values looked up in tables */ export declare const lookupSections: (parsedSections: SectionValues) => Sections; /** * * @param section Buffer containing GRIB Section data * @returns Section number of the input GRIB Section data */ export declare const getSectionNumber: (section: Buffer) => number;