NCEPLIBS-bufr 11.7.1
iupb.f
Go to the documentation of this file.
1C> @file
2C> @author WOOLLEN @date 1994-01-06
3
4C> THIS FUNCTION UNPACKS AND RETURNS A BINARY INTEGER WORD
5C> CONTAINED WITHIN NBIT BITS OF A BUFR MESSAGE PACKED INTO THE
6C> INTEGER ARRAY MBAY, STARTING WITH THE FIRST BIT OF BYTE NBYT.
7C>
8C> PROGRAM HISTORY LOG:
9C> 1994-01-06 J. WOOLLEN -- ORIGINAL AUTHOR
10C> 2003-11-04 J. ATOR -- ADDED DOCUMENTATION
11C> 2003-11-04 S. BENDER -- ADDED REMARKS/BUFRLIB ROUTINE
12C> INTERDEPENDENCIES
13C> 2003-11-04 D. KEYSER -- UNIFIED/PORTABLE FOR WRF; ADDED HISTORY
14C> DOCUMENTATION
15C>
16C> USAGE: IUPB (MBAY, NBYT, NBIT)
17C> INPUT ARGUMENT LIST:
18C> MBAY - INTEGER: *-WORD PACKED BINARY ARRAY CONTAINING BUFR
19C> MESSAGE
20C> NBYT - INTEGER: BYTE WITHIN MBAY AT WHOSE FIRST BIT TO BEGIN
21C> UNPACKING
22C> NBIT - INTEGER: NUMBER OF BITS WITHIN MBAY TO BE UNPACKED
23C>
24C> OUTPUT ARGUMENT LIST:
25C> IUPB - INTEGER: UNPACKED INTEGER WORD
26C>
27C> REMARKS:
28C> THIS ROUTINE CALLS: UPB
29C> THIS ROUTINE IS CALLED BY: CKTABA CPYUPD GETLENS IUPBS01
30C> IUPBS3 MSGUPD MSGWRT RDMEMS
31C> RTRCPTB STBFDX STNDRD STRCPT
32C> UPDS3 WRDXTB WRITLC
33C> Normally not called by any application
34C> programs.
35C>
36 FUNCTION iupb(MBAY,NBYT,NBIT)
37
38
39
40 dimension mbay(*)
41
42C----------------------------------------------------------------------
43C----------------------------------------------------------------------
44
45 mbit = (nbyt-1)*8
46 CALL upb(iret,nbit,mbay,mbit)
47 iupb = iret
48 RETURN
49 END
function iupb(MBAY, NBYT, NBIT)
THIS FUNCTION UNPACKS AND RETURNS A BINARY INTEGER WORD CONTAINED WITHIN NBIT BITS OF A BUFR MESSAGE ...
Definition: iupb.f:37
subroutine upb(NVAL, NBITS, IBAY, IBIT)
THIS SUBROUTINE UNPACKS AND RETURNS A BINARY INTEGER CONTAINED WITHIN NBITS BITS OF IBAY,...
Definition: upb.f:50