NCEPLIBS-bufr  12.0.1
ibfms.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Test whether a real*8 data value is "missing"
3 C>
4 C> @author J. Ator @date 2007-01-19
5 
6 C> Test whether a real*8 data value is "missing"
7 C>
8 C> This function provides a handy way to check whether a real*8
9 C> data value returned from a previous call to any of the
10 C> other BUFRLIB [values-reading subroutines](@ref hierarchy)
11 C> contains the current placeholder value for "missing" data.
12 C>
13 C> @param[in] R8VAL - real*8: Data value to be tested.
14 C> @returns ibfms - integer:
15 C> - 0 = R8VAL is not "missing".
16 C> - 1 = R8VAL is "missing".
17 C>
18 C> The current placeholder value for "missing" data
19 C> is always equal to the value XMISS as specified during the
20 C> most recent call to subroutine setbmiss(), or to a default
21 C> value of 10E10 if setbmiss() was never called. In either
22 C> case, a return value of 1 means that the corresponding
23 C> value was encoded as "missing" (all bits set to 1)
24 C> within the actual BUFR data subset.
25 C>
26 C> @author J. Ator @date 2007-01-19
27  INTEGER FUNCTION ibfms ( R8VAL )
28 
29  USE modv_bmiss
30 
31  real*8 r8val
32 
33 C----------------------------------------------------------------------
34 C----------------------------------------------------------------------
35 
36  IF ( r8val .EQ. bmiss ) THEN
37  ibfms = 1
38  ELSE
39  ibfms = 0
40  ENDIF
41 
42  RETURN
43  END
integer function ibfms(R8VAL)
Test whether a real*8 data value is "missing".
Definition: ibfms.f:28
This module declares and initializes the BMISS variable.
Definition: modules_vars.F90:9
real *8, public bmiss
Current placeholder value to represent "missing" data when reading from or writing to BUFR files; thi...