NCEPLIBS-bufr  12.0.0
upb.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Decode an integer value from an integer array.
3 C>
4 C> @author J. Woollen @date 1994-01-06
5 
6 C> This subroutine decodes an integer value from within a specified
7 C> number of bits of an integer array, starting at the bit
8 C> immediately after a specified bit within the array.
9 C>
10 C> It is similar to subroutine upbb(), except that here IBIT is
11 C> both an input and an output argument, and the overall order
12 C> of the arguments is different.
13 C>
14 C> @param[in] IBAY -- integer(*): Array containing encoded value
15 C> @param[in,out] IBIT -- integer: Bit pointer within IBAY
16 C> - On input, IBIT points to the bit within
17 C> IBAY after which to begin decoding NVAL.
18 C> - On output, IBIT points to the last bit
19 C> of IBAY which contained the decoded NVAL.
20 C> @param[in] NBITS -- integer: Number of bits to be decoded
21 C> @param[out] NVAL -- integer: Decoded value
22 C>
23 C> @remarks
24 C> - This subroutine is the logical inverse of subroutine pkb().
25 C>
26 C> @author J. Woollen @date 1994-01-06
27  SUBROUTINE upb(NVAL,NBITS,IBAY,IBIT)
28 
29  dimension ibay(*)
30 
31 C----------------------------------------------------------------------
32 C----------------------------------------------------------------------
33 
34  CALL upbb(nval,nbits,ibit,ibay)
35 
36  ibit = ibit+nbits
37 
38  RETURN
39  END
subroutine upb(NVAL, NBITS, IBAY, IBIT)
This subroutine decodes an integer value from within a specified number of bits of an integer array,...
Definition: upb.f:28
subroutine upbb(NVAL, NBITS, IBIT, IBAY)
This subroutine decodes an integer value from within a specified number of bits of an integer array,...
Definition: upbb.f:22