NCEPLIBS-g2  3.4.8
gf_unpack1.F90 File Reference

Unpack Section 1 (Identification Section). More...

Go to the source code of this file.

Functions/Subroutines

subroutine gf_unpack1 (cgrib, lcgrib, iofst, ids, idslen, ierr)
 Unpack Section 1 (Identification Section) of a GRIB2 message, starting at octet 6 of that Section. More...
 

Detailed Description

Unpack Section 1 (Identification Section).

Author
Stephen Gilbert
Date
2000-05-26

Definition in file gf_unpack1.F90.

Function/Subroutine Documentation

◆ gf_unpack1()

subroutine gf_unpack1 ( character(len=1), dimension(lcgrib), intent(in)  cgrib,
integer, intent(in)  lcgrib,
integer, intent(inout)  iofst,
integer, dimension(:), pointer  ids,
integer, intent(out)  idslen,
integer, intent(out)  ierr 
)

Unpack Section 1 (Identification Section) of a GRIB2 message, starting at octet 6 of that Section.

Parameters
[in]cgribCharacter array that contains the GRIB2 message.
[in]lcgribLength (in bytes) of GRIB message array cgrib.
[in,out]iofstBit offset of the beginning/end(returned) of Section 1.
[out]idsPointer to integer array containing information read from Section 1, the Identification section.
  • ids(1) Identification of originating Centre (Table 0).
  • ids(2) Identification of originating Sub-centre.(Table C). ).
  • ids(3) GRIB Master Tables Version Number (Code Table 1.0).
  • ids(4) GRIB Local Tables Version Number (Code Table 1.1).
  • ids(5) Significance of Reference Time (Code Table 1.2).
  • ids(6) Year (4 digits).
  • ids(7) Month
  • ids(8) Day
  • ids(9) Hour
  • ids(10) Minute
  • ids(11) Second
  • ids(12) Production status of processed data (Code Table 1.3).
  • ids(13) Type of processed data (Code Table 1.4).
[out]idslenNumber of elements in ids.
[out]ierrError return code.
  • 0 no error.
  • 6 memory allocation error.
Author
Stephen Gilbert
Date
2000-05-26

Definition at line 42 of file gf_unpack1.F90.

References g2_gbytec().

Referenced by getgb2s(), and gf_getfld().