vgrib2
Version:
[](https://badge.fury.io/js/vgrib2)
39 lines (38 loc) • 1.17 kB
TypeScript
import { Buffer } from 'buffer/';
import { DataRepresentationSectionValues } from './section-5';
export declare type DataSectionValues = ReturnType<typeof parseSection7>;
export declare type DataSection = ReturnType<typeof lookupSection7>;
/**
* Data Section
*
* [Read more...](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_sect7.shtml)
*/
export declare const parseSection7: (section: Buffer) => {
/** Number of GRIB section */
sectionNumber: number;
/** Name of Grib section */
sectionName: string;
/** Length of GRIB section */
length: number;
/** Section 7 Contents */
contents: {
data: Buffer;
};
};
/**
*
* @param ds Data Section
* @param drs Data Representation Section
* @returns Data Section with corresponding string values
*/
export declare const lookupSection7: (ds: DataSectionValues, drs: DataRepresentationSectionValues) => {
contents: {
data: number[];
};
/** Number of GRIB section */
sectionNumber: number;
/** Name of Grib section */
sectionName: string;
/** Length of GRIB section */
length: number;
};