NCEPLIBS-bufr  12.0.1
pkb.f File Reference

Encode an integer value within an integer array. More...

Go to the source code of this file.

Functions/Subroutines

subroutine pkb (NVAL, NBITS, IBAY, IBIT)
 This subroutine encodes an integer value 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

Encode an integer value within an integer array.

Author
J. Woollen
Date
1994-01-06

Definition in file pkb.f.

Function/Subroutine Documentation

◆ pkb()

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

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

Parameters
[in]NVAL– integer: Value to be encoded
[in]NBITS– integer: Number of bits of IBAY within which to encode NVAL
[out]IBAY– integer(*): Array containing encoded NVAL
[in,out]IBIT– integer: Bit pointer within IBAY
  • On input, IBIT points to the bit within IBAY after which to begin encoding NVAL.
  • On output, IBIT points to the last bit of IBAY which contains the encoded NVAL.
Remarks
  • This subroutine is the logical inverse of subroutine upb().
  • This subroutine will not work properly if NBITS is greater than the number of bits in an integer, as determined via an internal call to subroutine wrdlen().
Author
J. Woollen
Date
1994-01-06

Definition at line 27 of file pkb.f.

References bort(), and irev().

Referenced by atrcpt(), cmsgini(), cnved4(), cpyupd(), dxmini(), msgini(), msgupd(), msgwrt(), mvb(), pad(), padmsg(), pkb8(), pkbs1(), stndrd(), wrcmps(), and wrdxtb().