NCEPLIBS-bufr  11.6.0
 All Data Structures Files Functions Variables Pages
upbb.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine upbb (NVAL, NBITS, IBIT, IBAY)
 THIS SUBROUTINE UNPACKS AND RETURNS A BINARY INTEGER CONTAINED WITHIN NBITS BITS OF IBAY, STARTING WITH BIT (IBIT+1). More...
 

Detailed Description

Author
WOOLLEN
Date
1994-01-06

Definition in file upbb.f.

Function/Subroutine Documentation

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

THIS SUBROUTINE UNPACKS AND RETURNS A BINARY INTEGER CONTAINED WITHIN NBITS BITS OF IBAY, STARTING WITH BIT (IBIT+1).

THIS IS SIMILAR TO BUFR ARCHIVE LIBRARY SUBROUTINE UPB, EXCEPT IN UPBB IBIT IS NOT UPDATED UPON OUTPUT (AND THE ORDER OF ARGUMENTS IS DIFFERENT).

PROGRAM HISTORY LOG: 1994-01-06 J. WOOLLEN – ORIGINAL AUTHOR 1998-10-27 J. WOOLLEN – MODIFIED TO CORRECT PROBLEMS CAUSED BY IN- LINING CODE WITH FPP DIRECTIVES 2003-11-04 J. WOOLLEN – BIG-ENDIAN/LITTLE-ENDIAN INDEPENDENT (WAS IN DECODER VERSION) 2003-11-04 S. BENDER – ADDED REMARKS/BUFRLIB ROUTINE INTERDEPENDENCIES 2003-11-04 D. KEYSER – ADDED CHECK FOR NBITS EQUAL TO ZERO; MODIFIED LOGIC TO MAKE IT CONSISTENT WITH LOGIC IN UPB; UNIFIED/PORTABLE FOR WRF; ADDED DOCUMENTATION (INCLUDING HISTORY)

USAGE: CALL UPBB (NVAL, NBITS, IBIT, IBAY) INPUT ARGUMENT LIST: NBITS - INTEGER: NUMBER OF BITS OF IBAY WITHIN WHICH TO UNPACK NVAL IBIT - INTEGER: BIT POINTER WITHIN IBAY TO START UNPACKING FROM IBAY - INTEGER: *-WORD PACKED BINARY ARRAY CONTAINING PACKED NVAL

OUTPUT ARGUMENT LIST: NVAL - INTEGER: UNPACKED INTEGER

REMARKS: THIS ROUTINE CALLS: IREV THIS ROUTINE IS CALLED BY: RCSTPL RDTREE UFBGET UFBTAB UFBTAM UPB WRITLC Normally not called by any application programs.

Definition at line 42 of file upbb.f.

References irev().

Referenced by rcstpl(), rdtree(), ufbget(), ufbtab(), ufbtam(), upb(), and writlc().