NCEPLIBS-g2  3.4.5
gf_unpack2.f File Reference

This subroutine unpacks Section 2 (Local Use Section). More...

Go to the source code of this file.

Functions/Subroutines

subroutine gf_unpack2 (cgrib, lcgrib, iofst, lencsec2, csec2, ierr)
 This subroutine unpacks Section 2 (Local Use Section) as defined in GRIB Edition 2. More...
 

Detailed Description

This subroutine unpacks Section 2 (Local Use Section).

Author
Stephen Gilbert
Date
2002-04-09

Definition in file gf_unpack2.f.

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 
)

This subroutine unpacks Section 2 (Local Use Section) as defined in GRIB Edition 2.

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.
[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 22 of file gf_unpack2.f.