NCEPLIBS-bufr 11.7.1
nemtba.f
Go to the documentation of this file.
1C> @file
2C> @brief Search for a Table A descriptor within the internal DX
3C> BUFR tables
4
5C> This subroutine searches for a descriptor within Table A of the
6C> internal DX BUFR tables.
7C>
8C> <p>It is similar to subroutine nemtbax(), except that it calls
9C> subroutine bort() if the descriptor is not found in Table A,
10C> whereas nemtbax() will return an INOD value of 0 in such cases.
11C>
12C> @author J. Woollen
13C> @date 1994-01-06
14C>
15C> @param[in] LUN -- integer: Internal I/O stream index associated
16C> with DX BUFR tables
17C> @param[in] NEMO -- character*(*): Mnemonic for Table A descriptor
18C> @param[out] MTYP -- integer: Message type corresponding to NEMO
19C> @param[out] MSBT -- integer: Message subtype corresponding to NEMO
20C> @param[out] INOD -- integer: Positional index of NEMO within
21C> internal Table A
22C>
23C> <b>Program history log:</b>
24C> | Date | Programmer | Comments |
25C> | -----|------------|----------|
26C> | 1994-01-06 | J. Woollen | Original author |
27C> | 1995-06-28 | J. Woollen | Increased the size of internal BUFR table arrays in order to handle bigger files |
28C> | 1998-07-08 | J. Woollen | Replaced call to Cray library routine "ABORT" with call to new internal routine bort() |
29C> | 1999-11-18 | J. Woollen | The number of bufr files which can be opened at one time increased from 10 to 32 |
30C> | 2003-11-04 | J. Ator | Added documentation |
31C> | 2003-11-04 | S. Bender | Added remarks/bufrlib routine interdependencies |
32C> | 2003-11-04 | D. Keyser | Unified/portable for WRF; added documentation; outputs more complete diagnostic info when routine terminates abnormally |
33C> | 2009-05-07 | J. Ator | Use nemtbax |()
34C>
35 SUBROUTINE nemtba(LUN,NEMO,MTYP,MSBT,INOD)
36
37 CHARACTER*(*) NEMO
38 CHARACTER*128 BORT_STR
39
40C-----------------------------------------------------------------------
41C-----------------------------------------------------------------------
42
43C LOOK FOR NEMO IN TABLE A
44C ------------------------
45
46 CALL nemtbax(lun,nemo,mtyp,msbt,inod)
47 IF(inod.EQ.0) GOTO 900
48
49C EXITS
50C -----
51
52 RETURN
53900 WRITE(bort_str,'("BUFRLIB: NEMTBA - CAN''T FIND MNEMONIC ",A)')
54 . nemo
55 CALL bort(bort_str)
56 END
subroutine bort(STR)
This subroutine calls subroutine errwrt() to log an error message, then calls subroutine bort_exit() ...
Definition: bort.f:23
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:36
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:34