NCEPLIBS-bufr  12.0.0
istdesc.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Check whether a descriptor is WMO-standard.
3 C>
4 C> @author J. Ator @date 2004-08-18
5 
6 C> Check whether a descriptor is WMO-standard.
7 C>
8 C> Given the WMO bit-wise representation of an FXY value for a descriptor,
9 C> this function determines whether the descriptor is WMO-standard.
10 C>
11 C> If a descriptor is not WMO-standard, then by definition it is a
12 C> local descriptor.
13 C>
14 C> @param[in] IDN - integer: WMO bit-wise representation of FXY value
15 C> for descriptor.
16 C> @returns istdesc - integer: Flag indicating whether IDN is a
17 C> WMO-standard descriptor:
18 C> - 0 = No
19 C> - 1 = Yes
20 C>
21 C> @author J. Ator @date 2004-08-18
22  FUNCTION istdesc( IDN )
23 
24  CHARACTER*6 adsc, adn30
25 
26  adsc = adn30( idn, 6 )
27 
28  READ(adsc,'(I1,I2,I3)') IF,ix,iy
29  IF ( IF .EQ. 1 ) THEN
30 
31 C ADSC IS A REPLICATION DESCRIPTOR AND THEREFORE STANDARD
32 C BY DEFAULT.
33 
34  istdesc = 1
35  ELSE IF ( IF .EQ. 2 ) THEN
36 
37 C ADSC IS AN OPERATOR DESCRIPTOR
38 
39  istdesc = iokoper( adsc )
40  ELSE IF ( ( ix .LT. 48 ) .AND. ( iy .LT. 192 ) ) THEN
41  istdesc = 1
42  ELSE
43  istdesc = 0
44  END IF
45 
46  RETURN
47  END
character *(*) function adn30(IDN, L30)
Convert a WMO bit-wise representation of an FXY value to a character string of length 5 or 6.
Definition: adn30.f:23
integer function iokoper(NEMO)
This function determines whether a specified mnemonic is a Table C operator supported by the BUFRLIB ...
Definition: iokoper.f:18
function istdesc(IDN)
Check whether a descriptor is WMO-standard.
Definition: istdesc.f:23