s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
64 lines • 3.14 kB
TypeScript
import type { Reader } from '../../..';
export * from './tables';
/** The output of `parseGrib2Section1` */
export type Grib2IdentificationSection = ReturnType<typeof parseGrib2Section1>;
/**
* # Identification Section
*
* ## Notes
* - 1. Local tables define those parts of the master table which are reserved for local use except for the case described below. In any case, the use of local tables in the messages are intended for non-local or international exchange is strongly discouraged.
* - 2. If octet 10 is set to 255 then only local tables are in use. In this case, the local table version number (octet 11) must not be zero nor missing. Local tables may include entries from the entire range of the tables.
* - 3. If octet 11 is zero, octet 10 must contain a valid master table version number and only those parts of the tables not reserved for local use may be used.
* - 4. If octets 8-9 is zero, Not a sub-center, the originating/generating center is the center defined by octets 6-7.
*
* ## Links
* - [Read more...](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_sect1.shtml)
* @param section - The byte block to pull ideintification information
* @returns - The parsed identification section
*/
export declare function parseGrib2Section1(section: Reader): {
/** Number of GRIB section */
sectionNumber: number;
/** Name of Grib section */
sectionName: "Identification Section";
/** Length of GRIB section */
length: number;
/** Identification of originating/generating center [Table 0](https://www.nco.ncep.noaa.gov/pmb/docs/on388/table0.html) */
center: {
code: number;
description: string;
};
/** Identification of originating/generating subcenter [Table C](https://www.nco.ncep.noaa.gov/pmb/docs/on388/tablec.html) */
subcenter: {
code: number;
description: string;
};
/** GRIB master tables version number [Table 1.0](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table1-0.shtml) */
gribMasterTablesVersion: {
code: number;
description: string;
};
/** Version number of GRIB local tables used to augment Master Tables [Table 1.1](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table1-1.shtml) */
gribLocalTablesVersion: {
code: number;
description: string;
};
/** Significance of reference time [Table 1.2](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table1-2.shtml) */
significanceOfRT: {
code: number;
description: string;
};
/** Reference Time */
refTime: Date;
/** Production Status of Processed data in the GRIB message [Table 1.3](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table1-3.shtml) */
productionStatus: {
code: number;
description: string;
};
/** Type of processed data in this GRIB message [Table 1.4](https://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_table1-4.shtml) */
typeOfProcessedData: {
code: number;
description: string;
};
};
//# sourceMappingURL=index.d.ts.map