.TH "g2_unpack1.c" 3 "Tue May 3 2022" "Version 1.6.4" "NCEPLIBS-g2c" \" -*- nroff -*- .ad l .nh .SH NAME g2_unpack1.c \- Unpack Section 1 (Identification Section) as defined in GRIB Edition 2\&. .SH SYNOPSIS .br .PP \fC#include \fP .br \fC#include \fP .br \fC#include 'grib2\&.h'\fP .br .SS "Functions" .in +1c .ti -1c .RI "\fBg2int\fP \fBg2_unpack1\fP (unsigned char *cgrib, \fBg2int\fP *iofst, \fBg2int\fP **ids, \fBg2int\fP *idslen)" .br .RI "This subroutine unpacks Section 1 (Identification Section) as defined in GRIB Edition 2\&. " .in -1c .SH "Detailed Description" .PP Unpack Section 1 (Identification Section) as defined in GRIB Edition 2\&. .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2002-10-29 .RE .PP .PP Definition in file \fBg2_unpack1\&.c\fP\&. .SH "Function Documentation" .PP .SS "\fBg2int\fP g2_unpack1 (unsigned char * cgrib, \fBg2int\fP * iofst, \fBg2int\fP ** ids, \fBg2int\fP * idslen)" .PP This subroutine unpacks Section 1 (Identification Section) as defined in GRIB Edition 2\&. .PP \fBParameters\fP .RS 4 \fIcgrib\fP char array containing Section 1 of the GRIB2 message\&. .br \fIiofst\fP Bit offset for the beginning of Section 1 in cgrib\&. .br \fIids\fP address of pointer to integer array containing information read from Section 1, the Identification section\&. .IP "\(bu" 2 ids[0] Identification of originating Centre (see Common Code Table C-1)\&. .IP "\(bu" 2 ids[1] Identification of originating Sub-centre\&. .IP "\(bu" 2 ids[2] GRIB Master Tables Version Number (see Code Table 1\&.0)\&. .IP "\(bu" 2 ids[3] GRIB Local Tables Version Number (see Code Table 1\&.1)\&. .IP "\(bu" 2 ids[4] Significance of Reference Time (Code Table 1\&.2) .IP "\(bu" 2 ids[5] Year ( 4 digits ) .IP "\(bu" 2 ids[6] Month .IP "\(bu" 2 ids[7] Day .IP "\(bu" 2 ids[8] Hour .IP "\(bu" 2 ids[9] Minute .IP "\(bu" 2 ids[10] Second .IP "\(bu" 2 ids[11] Production status of processed data (see Code Table 1\&.3)\&. .IP "\(bu" 2 ids[12] Type of processed data (see Code Table 1\&.4)\&. .PP .br \fIidslen\fP Number of elements in ids\&. .RE .PP \fBReturns\fP .RS 4 .IP "\(bu" 2 0 no error .IP "\(bu" 2 2 Array passed is not section 1 .IP "\(bu" 2 6 memory allocation error .PP .RE .PP \fBAuthor\fP .RS 4 Stephen Gilbert .RE .PP \fBDate\fP .RS 4 2002-10-29 .RE .PP .PP Definition at line 44 of file g2_unpack1\&.c\&. .PP References gbit()\&. .PP Referenced by g2_getfld()\&. .SH "Author" .PP Generated automatically by Doxygen for NCEPLIBS-g2c from the source code\&.