UNPKG

vgrib2

Version:

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

108 lines (107 loc) 4.23 kB
import { Buffer } from 'buffer/'; /** * @description Returns a template generator for the given template number * @param template Template number * @returns Template generator */ export declare const getTemplate3: (template: number) => (section: Buffer) => { /** Shape of Earth [Table 3.2](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table3-2.shtml) */ shape: number; /** Number of points along a parallel */ nx: number; /** Number of points along a meridian */ ny: number; /** Basic angle of the initial production domain */ basicAngle: number; /** Subdivisions of basic angle used to define extreme longitudes and latitudes, and direction increments */ subdivisions: number; /** Latitude of first grid point */ la1: number; /** Longitude of first grid point */ lo1: number; /** Resolution and component flags [Table 3.3](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table3-3.shtml) */ resolution: number; /** Latitude of last grid point */ la2: number; /** Longitude of last grid point */ lo2: number; /** i direction increment */ dx: number; /** j direction increment */ dy: number; /** Scanning mode [Table 3.4](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table3-4.shtml) */ scanMode: number; /** Grid Units */ gridUnits: string; }; /** * @description Returns a template map for the given template number * @param table Template number * @returns Template Map */ export declare const lookupTemplate3: (template: number) => (templateValues: ReturnType<typeof template30>) => { /** Shape of Earth [Table 3.2](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table3-2.shtml) */ shape: string; /** Number of points along a parallel */ nx: number; /** Number of points along a meridian */ ny: number; /** Basic angle of the initial production domain */ basicAngle: number; /** Subdivisions of basic angle used to define extreme longitudes and latitudes, and direction increments */ subdivisions: number; /** Latitude of first grid point */ la1: number; /** Longitude of first grid point */ lo1: number; /** Resolution and component flags [Table 3.3](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table3-3.shtml) */ resolution: number; /** Latitude of last grid point */ la2: number; /** Longitude of last grid point */ lo2: number; /** i direction increment */ dx: number; /** j direction increment */ dy: number; /** Scanning mode [Table 3.4](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table3-4.shtml) */ scanMode: number; /** Grid Units */ gridUnits: string; }; /** * Grid Definition Template 3.0 * * [Read more...](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_temp3-0.shtml) */ declare const template30: (section: Buffer) => { /** Shape of Earth [Table 3.2](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table3-2.shtml) */ shape: number; /** Number of points along a parallel */ nx: number; /** Number of points along a meridian */ ny: number; /** Basic angle of the initial production domain */ basicAngle: number; /** Subdivisions of basic angle used to define extreme longitudes and latitudes, and direction increments */ subdivisions: number; /** Latitude of first grid point */ la1: number; /** Longitude of first grid point */ lo1: number; /** Resolution and component flags [Table 3.3](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table3-3.shtml) */ resolution: number; /** Latitude of last grid point */ la2: number; /** Longitude of last grid point */ lo2: number; /** i direction increment */ dx: number; /** j direction increment */ dy: number; /** Scanning mode [Table 3.4](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table3-4.shtml) */ scanMode: number; /** Grid Units */ gridUnits: string; }; export {};