NCEPLIBS-g2  3.4.7
gf_unpack2.F90 File Reference

Unpack Section 2 (Local Use Section) of a GRIB2 message. More...

Go to the source code of this file.

Functions/Subroutines

subroutine gf_unpack2 (cgrib, lcgrib, iofst, lencsec2, csec2, ierr)
 Unpack Section 2 (Local Use Section) of a GRIB2 message. More...
 

Detailed Description

Unpack Section 2 (Local Use Section) of a GRIB2 message.

Author
Stephen Gilbert
Date
2002-04-09

Definition in file gf_unpack2.F90.

Function/Subroutine Documentation

◆ gf_unpack2()

subroutine gf_unpack2 ( character(len = 1), dimension(lcgrib), intent(in)  cgrib,
integer, intent(in)  lcgrib,
integer, intent(inout)  iofst,
integer, intent(out)  lencsec2,
character(len = 1), dimension(:), pointer  csec2,
integer, intent(out)  ierr 
)

Unpack Section 2 (Local Use Section) of a GRIB2 message.

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 2.
[out]lencsec2Length (in octets) of Local Use data.
[out]csec2Pointer to a character*1 array containing local use data. Caller should pass in an unassociated pointer, and must free memory allocated by this subroutine by calling deallocate on this pointer.
[out]ierrError return code.
  • 0 no error.
  • 2 Array passed is not section 2.
  • 6 memory allocation error.
Author
Stephen Gilbert
Date
2002-04-09

Definition at line 25 of file gf_unpack2.F90.

References g2_gbytec().

Referenced by getgb2l(), and gf_getfld().