NCEPLIBS-bufr 11.7.1
codflg.f
Go to the documentation of this file.
1C> @file
2C> @brief Specify inclusion of code and flag tables when reading
3C> master BUFR tables.
4
5C> This subroutine is used to specify whether or not code and flag
6C> table information should be included during all future reads of
7C> master BUFR tables.
8C>
9C> @author J. Ator
10C> @date 2017-10-13
11C>
12C> @param[in] CF -- character*1: Flag indicating whether
13C> or not to include code and flag table
14C> information during all future reads of
15C> master BUFR tables
16C> - 'N' = No (the default)
17C> - 'Y' = Yes
18C>
19C> <p>See [Master BUFR Tables](@ref dfbfmstab)
20C> for more information about master BUFR tables. In particlar, note
21C> that Table B and Table D files are always read whenever master BUFR
22C> tables are being used, but the reading of Code/Flag table files is
23C> optional and should only be included if the user intends to make
24C> one or more future calls to subroutine getcfmng(); otherwise, the
25C> reading of Code/Flag table files will result in the unnecessary use
26C> of memory and other system resources.
27C>
28C> <p>If Code/Flag tables are to be read and used, they must reside in
29C> the same directory as the master Table B and Table D files on the
30C> local filesystem, as specified within a separate call to
31C> subroutine mtinfo().
32C>
33C> <p>This subroutine can be called at any time after the first call
34C> to subroutine openbf(), and the specified value for CF will remain
35C> in effect for all future reads of master BUFR tables, unless a
36C> subsequent call is made to this subroutine to reset the value of
37C> CF again. If this subroutine is never called, a default value of
38C> 'N' is used for CF, as set within subroutine bfrini().
39C>
40C> <b>Program history log:</b>
41C> | Date | Programmer | Comments |
42C> | -----|------------|----------|
43C> | 2017-10-13 | J. Ator | Original author |
44C>
45 SUBROUTINE codflg(CF)
46
47 COMMON /tablef/ cdmf
48
49 CHARACTER*128 BORT_STR
50 CHARACTER*1 CDMF, CF
51
52C-----------------------------------------------------------------------
53C-----------------------------------------------------------------------
54
55 CALL capit(cf)
56 IF(cf.NE.'Y'.AND. cf.NE.'N') GOTO 900
57 cdmf = cf
58
59C EXITS
60C -----
61
62 RETURN
63900 WRITE(bort_str,'("BUFRLIB: CODFLG - INPUT ARGUMENT IS ",A1,'//
64 . '", IT MUST BE EITHER Y OR N")') cf
65 CALL bort(bort_str)
66 END
subroutine bort(STR)
This subroutine calls subroutine errwrt() to log an error message, then calls subroutine bort_exit() ...
Definition: bort.f:23
subroutine capit(STR)
This subroutine capitalizes all of the alphabetic characters in a string.
Definition: capit.f:19
subroutine codflg(CF)
This subroutine is used to specify whether or not code and flag table information should be included ...
Definition: codflg.f:46