29 subroutine gf_unpack6(cgrib, lcgrib, iofst, ngpts, ibmap, bmap, ierr)
32 character(len = 1),
intent(in) :: cgrib(lcgrib)
33 integer,
intent(in) :: lcgrib, ngpts
34 integer,
intent(inout) :: iofst
35 integer,
intent(out) :: ibmap
36 integer,
intent(out) :: ierr
38 logical*1,
pointer,
dimension(:) :: bmap
39 integer :: intbmap(ngpts)
51 if (ibmap .eq. 0)
then
53 if (ngpts .gt. 0)
allocate(bmap(ngpts), stat = istat)
54 if (istat .ne. 0)
then
59 call g2_gbytesc(cgrib, intbmap, iofst, 1, 0, ngpts)
63 if (intbmap(j) .eq. 0) bmap(j) = .false.
subroutine g2_gbytesc(in, iout, iskip, nbits, nskip, n)
Extract arbitrary size values from a packed bit string, right justifying each value in the unpacked a...
subroutine g2_gbytec(in, iout, iskip, nbits)
Extract arbitrary size values from a packed bit string, right justifying each value in the unpacked a...
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.