NCEPLIBS-bufr  11.5.0
 All Data Structures Files Functions Variables Pages
numtbd.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine numtbd (LUN, IDN, NEMO, TAB, IRET)
 THIS SUBROUTINE SEARCHES FOR AN INTEGER IDN, CONTAINING THE BIT-WISE REPRESENTATION OF A DESCRIPTOR (FXY) VALUE, WITHIN THE INTERNAL BUFR TABLE B AND D ARRAYS IN MODULE TABABD. More...
 

Detailed Description

Author
WOOLLEN
Date
2002-05-14

Definition in file numtbd.f.

Function/Subroutine Documentation

subroutine numtbd (   LUN,
  IDN,
character*(*)  NEMO,
character*1  TAB,
  IRET 
)

THIS SUBROUTINE SEARCHES FOR AN INTEGER IDN, CONTAINING THE BIT-WISE REPRESENTATION OF A DESCRIPTOR (FXY) VALUE, WITHIN THE INTERNAL BUFR TABLE B AND D ARRAYS IN MODULE TABABD.

IF FOUND, IT RETURNS THE CORRESPONDING MNEMONIC AND OTHER INFORMATION FROM WITHIN THESE ARRAYS. IF IDN IS NOT FOUND, IT RETURNS WITH IRET=0.

PROGRAM HISTORY LOG: 2002-05-14 J. WOOLLEN – ORIGINAL AUTHOR 2003-11-04 S. BENDER – ADDED REMARKS/BUFRLIB ROUTINE INTERDEPENDENCIES 2003-11-04 D. KEYSER – UNIFIED/PORTABLE FOR WRF; ADDED DOCUMENTATION (INCLUDING HISTORY) 2009-04-21 J. ATOR – USE IFXY FOR MORE EFFICIENT SEARCHING 2014-12-10 J. ATOR – USE MODULES INSTEAD OF COMMON BLOCKS

USAGE: CALL NUMTBD (LUN, IDN, NEMO, TAB, IRET) INPUT ARGUMENT LIST: LUN - INTEGER: I/O STREAM INDEX INTO INTERNAL MEMORY ARRAYS IDN - INTEGER: BIT-WISE REPRESENTATION OF DESCRIPTOR (FXY) VALUE

OUTPUT ARGUMENT LIST: NEMO - CHARACTER*(*): MNEMONIC CORRESPONDING TO IDN TAB - CHARACTER*1: TYPE OF FXY VALUE THAT IS BIT-WISE REPRESENTED BY IDN: 'B' = BUFR Table B descriptor 'D' = BUFR Table D descriptor IRET - INTEGER: RETURN VALUE (SEE REMARKS)

REMARKS: THE INTERPRETATION OF THE RETURN VALUE IRET DEPENDS UPON THE RETURN VALUE OF TAB, AS FOLLOWS:

IF ( TAB = 'B' ) THEN IRET = positional index of IDN within internal BUFR Table B array ELSE IF ( TAB = 'D') THEN IRET = positional index of IDN within internal BUFR Table D array ELSE IF ( IRET = 0 ) THEN IDN was not found in internal BUFR Table B or D END IF

THIS ROUTINE CALLS:        IFXY
THIS ROUTINE IS CALLED BY: GETCFMNG NUMTAB   RESTD    STSEQ
                           UFDUMP
                           Normally not called by any application
                           programs.

Definition at line 54 of file numtbd.f.

References ifxy().

Referenced by getcfmng(), numtab(), restd(), stseq(), and ufdump().