NCEPLIBS-bufr  11.5.0
 All Data Structures Files Functions Variables Pages
istdesc.f
Go to the documentation of this file.
1 C> @file
2 C> @author ATOR @date 2004-08-18
3 
4 C> GIVEN THE BIT-WISE REPRESENTATION OF THE FXY VALUE
5 C> FOR A DESCRIPTOR, THIS FUNCTION DETERMINES WHETHER THE DESCRIPTOR
6 C> IS A WMO-STANDARD DESCRIPTOR OR A LOCAL DESCRIPTOR.
7 C>
8 C> PROGRAM HISTORY LOG:
9 C> 2004-08-18 J. ATOR -- ORIGINAL AUTHOR
10 C>
11 C> USAGE: ISTDESC( IDN )
12 C> INPUT ARGUMENT LIST:
13 C> IDN - INTEGER: BIT-WISE REPRESENTATION OF FXY VALUE
14 C> FOR DESCRIPTOR TO BE CHECKED
15 C>
16 C> OUTPUT ARGUMENT LIST:
17 C> ISTDESC - INTEGER: RETURN VALUE:
18 C> 0 - IDN IS A LOCAL DESCRIPTOR
19 C> 1 - IDN IS A WMO-STANDARD DESCRIPTOR
20 C>
21 C> REMARKS:
22 C> THIS ROUTINE CALLS: ADN30 IOKOPER
23 C> THIS ROUTINE IS CALLED BY: IREADMT RESTD STNDRD
24 C> Normally not called by application
25 C> programs but it could be.
26 C>
27  FUNCTION istdesc( IDN )
28 
29 
30 
31  character*6 adsc, adn30
32 
33  adsc = adn30( idn, 6 )
34 
35  READ(adsc,'(I1,I2,I3)') IF,ix,iy
36  IF ( IF .EQ. 1 ) THEN
37 
38 C ADSC IS A REPLICATION DESCRIPTOR AND THEREFORE STANDARD
39 C BY DEFAULT.
40 
41  istdesc = 1
42  ELSE IF ( IF .EQ. 2 ) THEN
43 
44 C ADSC IS AN OPERATOR DESCRIPTOR
45 
46  istdesc = iokoper( adsc )
47  ELSE IF ( ( ix .LT. 48 ) .AND. ( iy .LT. 192 ) ) THEN
48  istdesc = 1
49  ELSE
50  istdesc = 0
51  END IF
52 
53  RETURN
54  END
function istdesc(IDN)
GIVEN THE BIT-WISE REPRESENTATION OF THE FXY VALUE FOR A DESCRIPTOR, THIS FUNCTION DETERMINES WHETHER...
Definition: istdesc.f:27
character *(*) function adn30(IDN, L30)
This function converts a descriptor from its bit-wise (integer) representation to its 5 or 6 characte...
Definition: adn30.f:27
INTEGER function iokoper(NEMO)
This function determines whether a specified mnemonic is a Table C operator supported by the BUFRLIB ...
Definition: iokoper.f:22