NCEPLIBS-bufr 11.7.1
up8.f
Go to the documentation of this file.
1C> @file
2C> @author WOOLLEN @date 1994-01-06
3
4C> THIS SUBROUTINE UNPACKS AND RETURNS AN 8-BYTE INTEGER
5C> CONTAINED WITHIN NBITS BITS OF IBAY, STARTING WITH BIT (IBIT+1).
6C> ON OUTPUT, IBIT IS UPDATED TO POINT TO THE LAST BIT THAT WAS
7C> UNPACKED. THIS IS SIMILAR TO BUFR ARCHIVE LIBRARY SUBROUTINE UPB8,
8C> EXCEPT IN UPB8 IBIT IS NOT UPDATED UPON OUTPUT (AND THE ORDER OF
9C> ARGUMENTS IS DIFFERENT).
10C>
11C> PROGRAM HISTORY LOG:
12C> 2022-05-06 J. WOOLLEN -- ORIGINAL AUTHOR
13C>
14C> USAGE: CALL UP8 (NVAL, NBITS, IBAY, IBIT)
15C> INPUT ARGUMENT LIST:
16C> NBITS - INTEGER: NUMBER OF BITS OF IBAY WITHIN WHICH TO UNPACK
17C> NVAL
18C> IBAY - INTEGER: *-WORD PACKED BINARY ARRAY CONTAINING PACKED
19C> NVAL
20C> IBIT - INTEGER: BIT POINTER WITHIN IBAY INDICATING BIT AFTER
21C> WHICH TO START UNPACKING
22C>
23C> OUTPUT ARGUMENT LIST:
24C> NVAL - INTEGER*8: UNPACKED INTEGER
25C> IBIT - INTEGER: BIT POINTER WITHIN IBAY INDICATING LAST BIT
26C> THAT WAS UNPACKED
27C>
28C> REMARKS:
29C> THIS SUBROUTINE IS THE INVERSE OF BUFR ARCHIVE LIBRARY ROUTINE
30C> PKB8.
31C>
32C> THIS ROUTINE CALLS: UPB8
33C> THIS ROUTINE IS CALLED BY: RDCMPS WRCMPS UFBTAB
34C> Normally not called by any application
35C> programs.
36C>
37!----------------------------------------------------------------------
38!----------------------------------------------------------------------
39
40 subroutine up8(nval,nbits,ibay,ibit)
41
42 common /hrdwrd/ nbytw,nbitw,iord(8)
43
44 integer(8) :: nval
45 integer(4) :: nbits,ibit,ibay(*)
46
47 call upb8(nval,nbits,ibit,ibay)
48 ibit = ibit+nbits
49
50 end subroutine
subroutine up8(nval, nbits, ibay, ibit)
THIS SUBROUTINE UNPACKS AND RETURNS AN 8-BYTE INTEGER CONTAINED WITHIN NBITS BITS OF IBAY,...
Definition: up8.f:41
subroutine upb8(nval, nbits, ibit, ibay)
THIS SUBROUTINE UNPACKS AND RETURNS AN 8-BYTE INTEGER CONTAINED WITHIN NBITS BITS OF IBAY,...
Definition: upb8.f:36