1 FUNCTION IUPB
(MBAY
,NBYT
,NBIT
)
3 C$$$ SUBPROGRAM DOCUMENTATION BLOCK
6 C PRGMMR: WOOLLEN ORG: NP20 DATE: 1994-01-06
8 C ABSTRACT: THIS FUNCTION UNPACKS AND RETURNS A BINARY INTEGER WORD
9 C CONTAINED WITHIN NBIT BITS OF A BUFR MESSAGE PACKED INTO THE
10 C INTEGER ARRAY MBAY, STARTING WITH THE FIRST BIT OF BYTE NBYT.
12 C PROGRAM HISTORY LOG:
13 C 1994-01-06 J. WOOLLEN -- ORIGINAL AUTHOR
14 C 2003-11-04 J. ATOR -- ADDED DOCUMENTATION
15 C 2003-11-04 S. BENDER -- ADDED REMARKS/BUFRLIB ROUTINE
17 C 2003-11-04 D. KEYSER -- UNIFIED/PORTABLE FOR WRF; ADDED HISTORY
20 C USAGE: IUPB (MBAY, NBYT, NBIT)
21 C INPUT ARGUMENT LIST:
22 C MBAY - INTEGER: *-WORD PACKED BINARY ARRAY CONTAINING BUFR
24 C NBYT - INTEGER: BYTE WITHIN MBAY AT WHOSE FIRST BIT TO BEGIN
26 C NBIT - INTEGER: NUMBER OF BITS WITHIN MBAY TO BE UNPACKED
28 C OUTPUT ARGUMENT LIST:
29 C IUPB - INTEGER: UNPACKED INTEGER WORD
32 C THIS ROUTINE CALLS: UPB
33 C THIS ROUTINE IS CALLED BY: CKTABA CPYUPD GETLENS IUPBS01
34 C IUPBS3 MSGUPD MSGWRT RDMEMS
35 C STNDRD STRCPT SUBUPD UPDS3
37 C Normally not called by any application
41 C LANGUAGE: FORTRAN 77
42 C MACHINE: PORTABLE TO ALL PLATFORMS
48 C----------------------------------------------------------------------
49 C----------------------------------------------------------------------
52 CALL UPB
(IRET
,NBIT
,MBAY
,MBIT
)