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