NCEPLIBS-g2  3.4.5
gf_unpack6.f File Reference

Contains subroutines unpacks Section 6 (Bit-Map Section). More...

Go to the source code of this file.

Functions/Subroutines

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

Detailed Description

Contains subroutines unpacks Section 6 (Bit-Map Section).

Author
Stephen Gilbert
Date
2000-05-26

Definition in file gf_unpack6.f.

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 
)

This subroutine unpacks Section 6 (Bit-Map Section) starting at octet 6 of that Section.

PROGRAM HISTORY LOG:

  • 2000-05-26 Stephen Gilbert Initial development.
  • 2002-01-24 Stephen Gilbert Changed to dynamically allocate arrays and to pass pointers to those arrays through the argument list.
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 37 of file gf_unpack6.f.