NCEPLIBS-bufr 11.7.1
setbmiss.f
Go to the documentation of this file.
1C> @file
2C> @brief Define a customized placeholder value for "missing" data
3
4C> This subroutine allows the user to specify a customized value to
5C> represent "missing" data when reading from or writing to BUFR files.
6C>
7C> @author J. Woollen
8C> @date 2012-09-15
9C>
10C> @param[in] XMISS -- real*8: New placeholder value to represent
11C> "missing" data
12C>
13C> <p>This subroutine can be called at any time from within an
14C> application program, and the value XMISS will then be treated as
15C> "missing" when reading or writing BUFR data during all future
16C> calls to any of the other BUFRLIB
17C> [values-reading subroutines](@ref hierarchy) or
18C> [values-writing subroutines](@ref hierarchy).
19C> Otherwise, if this subroutine is never called, a default
20C> placeholder value of 10E10_8 is used for "missing".
21C>
22C> <p>Any data value can always be checked for equivalence to the
23C> current "missing" value via a call to function ibfms(). See also
24C> function getbmiss().
25C>
26C> @remarks
27C> - The value XMISS is never actually encoded within a BUFR data
28C> subset; rather, XMISS is a user-friendly placeholder value to
29C> represent "missing" data values within the scope of the
30C> application program. In any actual BUFR data subset, "missing"
31C> values are always encoded as all bits set to 1, per WMO
32C> regulations.
33C>
34C> <b>Program history log:</b>
35C> | Date | Programmer | Comments |
36C> | -----|------------|----------|
37C> | 2012-09-15 | J. Woollen | Original author |
38C>
39 SUBROUTINE setbmiss(XMISS)
40
41 USE modv_bmiss
42
43 real*8 xmiss
44
45c-----------------------------------------------------------------------
46c-----------------------------------------------------------------------
47
48 CALL openbf(0,'FIRST',0)
49
50 bmiss = xmiss
51
52 RETURN
53 END
This module declares and initializes the BMISS variable.
Definition: modv_BMISS.f90:9
real *8, public bmiss
Current placeholder value to represent "missing" data when reading from or writing to BUFR files; thi...
Definition: modv_BMISS.f90:15
subroutine openbf(LUNIT, IO, LUNDX)
This subroutine connects a new file to the BUFRLIB software for input or output operations.
Definition: openbf.f:139
subroutine setbmiss(XMISS)
This subroutine allows the user to specify a customized value to represent "missing" data when readin...
Definition: setbmiss.f:40