NCEPLIBS-bufr 11.7.1
idxmsg.f
Go to the documentation of this file.
1C> @file
2C> @brief Check whether a BUFR message contains DX BUFR tables
3C> information
4
5C> This function determines whether a given BUFR message contains
6C> DX BUFR tables information that was generated by the BUFRLIB
7C> software.
8C>
9C> @author J. Ator
10C> @date 2009-03-23
11C>
12C> @param[in] MESG -- integer(*): BUFR message
13C> @returns idxmsg -- integer: Flag indicating whether MESG
14C> contains DX BUFR tables information:
15C> - 0 = No
16C> - 1 = Yes
17C>
18C> <b>Program history log:</b>
19C> | Date | Programmer | Comments |
20C> | -----|------------|----------|
21C> | 2009-03-23 | J. Ator | Original author |
22C>
23 FUNCTION idxmsg( MESG )
24
25 dimension mesg(*)
26
27C-----------------------------------------------------------------------
28C-----------------------------------------------------------------------
29
30C Note that the following test relies upon logic within subroutine
31C DXMINI which zeroes out the Section 1 date of all DX dictionary
32C messages.
33
34 IF ( (iupbs01(mesg,'MTYP').EQ.11) .AND.
35 . (iupbs01(mesg,'MNTH').EQ.0) .AND.
36 . (iupbs01(mesg,'DAYS').EQ.0) .AND.
37 . (iupbs01(mesg,'HOUR').EQ.0) ) THEN
38 idxmsg = 1
39 ELSE
40 idxmsg = 0
41 END IF
42
43 RETURN
44 END
function idxmsg(MESG)
This function determines whether a given BUFR message contains DX BUFR tables information that was ge...
Definition: idxmsg.f:24
function iupbs01(MBAY, S01MNEM)
This function returns a specified value from within Section 0 or Section 1 of a BUFR message.
Definition: iupbs01.f:74