NCEPLIBS-bufr  12.0.1
nemtba.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Search for a Table A descriptor within the internal DX
3 C> BUFR tables
4 C>
5 C> @author J. Woollen @date 1994-01-06
6 
7 C> This subroutine searches for a descriptor within Table A of the
8 C> internal DX BUFR tables.
9 C>
10 C> It is similar to subroutine nemtbax(), except that it calls
11 C> subroutine bort() if the descriptor is not found in Table A,
12 C> whereas nemtbax() will return an INOD value of 0 in such cases.
13 C>
14 C> @param[in] LUN - integer: Internal I/O stream index associated
15 C> with DX BUFR tables
16 C> @param[in] NEMO - character*(*): Mnemonic for Table A descriptor
17 C> @param[out] MTYP - integer: Message type corresponding to NEMO
18 C> @param[out] MSBT - integer: Message subtype corresponding to NEMO
19 C> @param[out] INOD - integer: Positional index of NEMO within
20 C> internal Table A
21 C>
22 C> @author J. Woollen @date 1994-01-06
23 
24  SUBROUTINE nemtba(LUN,NEMO,MTYP,MSBT,INOD)
25 
26  CHARACTER*(*) NEMO
27  CHARACTER*128 BORT_STR
28 
29 C-----------------------------------------------------------------------
30 C-----------------------------------------------------------------------
31 
32 C LOOK FOR NEMO IN TABLE A
33 C ------------------------
34 
35  CALL nemtbax(lun,nemo,mtyp,msbt,inod)
36  IF(inod.EQ.0) GOTO 900
37 
38 C EXITS
39 C -----
40 
41  RETURN
42 900 WRITE(bort_str,'("BUFRLIB: NEMTBA - CAN''T FIND MNEMONIC ",A)')
43  . nemo
44  CALL bort(bort_str)
45  END
subroutine bort(STR)
Log one error message and abort application program.
Definition: bort.f:18
subroutine nemtba(LUN, NEMO, MTYP, MSBT, INOD)
This subroutine searches for a descriptor within Table A of the internal DX BUFR tables.
Definition: nemtba.f:25
subroutine nemtbax(LUN, NEMO, MTYP, MSBT, INOD)
This subroutine searches for a descriptor within Table A of the internal DX BUFR tables.
Definition: nemtbax.f:26