NCEPLIBS-bufr  12.0.0
upb.f File Reference

Decode an integer value from an integer array. More...

Go to the source code of this file.

Functions/Subroutines

subroutine upb (NVAL, NBITS, IBAY, IBIT)
 This subroutine decodes an integer value from within a specified number of bits of an integer array, starting at the bit immediately after a specified bit within the array. More...
 

Detailed Description

Decode an integer value from an integer array.

Author
J. Woollen
Date
1994-01-06

Definition in file upb.f.

Function/Subroutine Documentation

◆ upb()

subroutine upb (   NVAL,
  NBITS,
dimension(*)  IBAY,
  IBIT 
)

This subroutine decodes an integer value from within a specified number of bits of an integer array, starting at the bit immediately after a specified bit within the array.

It is similar to subroutine upbb(), except that here IBIT is both an input and an output argument, and the overall order of the arguments is different.

Parameters
[in]IBAY– integer(*): Array containing encoded value
[in,out]IBIT– integer: Bit pointer within IBAY
  • On input, IBIT points to the bit within IBAY after which to begin decoding NVAL.
  • On output, IBIT points to the last bit of IBAY which contained the decoded NVAL.
[in]NBITS– integer: Number of bits to be decoded
[out]NVAL– integer: Decoded value
Remarks
  • This subroutine is the logical inverse of subroutine pkb().
Author
J. Woollen
Date
1994-01-06

Definition at line 27 of file upb.f.

References upbb().

Referenced by copysb(), iupb(), mvb(), rdcmps(), readsb(), stndrd(), ufbinx(), ufbtab(), ufbtam(), upb8(), upc(), and writlc().