NCEPLIBS-g2  3.4.8
gf_unpack6.F90 File Reference

Unpack Section 6 (Bit-Map Section) of a GRIB2 message. More...

Go to the source code of this file.

Functions/Subroutines

subroutine gf_unpack6 (cgrib, lcgrib, iofst, ngpts, ibmap, bmap, ierr)
 Unpack Section 6 (Bit-Map Section) of a GRIB2 message, starting at octet 6 of that Section. More...
 

Detailed Description

Unpack Section 6 (Bit-Map Section) of a GRIB2 message.

Author
Stephen Gilbert
Date
2000-05-26

Definition in file gf_unpack6.F90.

Function/Subroutine Documentation

◆ gf_unpack6()

subroutine gf_unpack6 ( character(len = 1), dimension(lcgrib), intent(in)  cgrib,
integer, intent(in)  lcgrib,
integer, intent(inout)  iofst,
integer, intent(in)  ngpts,
integer, intent(out)  ibmap,
logical*1, dimension(:), pointer  bmap,
integer, intent(out)  ierr 
)

Unpack Section 6 (Bit-Map 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 6.
[in]ngptsNumber of grid points specified in the bit-map.
[out]ibmapBitmap indicator (see Code Table 6.0)
  • 0 bitmap applies and is included in Section 6.
  • 1-253 Predefined bitmap applies.
  • 254 Previously defined bitmap applies to this field.
  • 255 Bit map does not apply to this product.
[out]bmapLogical*1 array containing decoded bitmap. (if ibmap=0) The dimension of this array can be obtained in advance from maxvals(7), which is returned from subroutine gribinfo().
[out]ierrError return code.
  • 0 no error.
  • 4 Unrecognized pre-defined bit-map.
  • 6 memory allocation error.
Author
Stephen Gilbert
Date
2000-05-26

Definition at line 29 of file gf_unpack6.F90.

References g2_gbytec(), and g2_gbytesc().

Referenced by getgb2r(), and gf_getfld().