NCEPLIBS-bufr 11.7.1
writcp.f
Go to the documentation of this file.
1C> @file
2C> @brief Write a data subset into a BUFR message using compression
3
4C> This subroutine is similar to subroutine writsb(), except that
5C> when the subset is encoded and packed into the current message
6C> for the BUFR file associated with logical unit LUNIT, it is
7C> packed using compression as prescribed within the
8C> [official WMO BUFR regulations](@ref manual).
9C>
10C> @author J. Woollen
11C> @date 2002-05-14
12C>
13C> @param[in] LUNIT -- integer: Fortran logical unit number for BUFR file
14C>
15C> @remarks
16C> - This subroutine activates compression via an internal call to
17C> subroutine cmpmsg(), followed by an internal call to subroutine
18C> writsb(), followed by a second internal call to subroutine
19C> cmpmsg() to deactivate compression. For this reason, most
20C> application programs which write compressed BUFR messages now
21C> call subroutines cmpmsg() and writsb() directly; however, this
22C> subroutine is still supported within the BUFRLIB software for
23C> backwards-compatibility with certain legacy application programs.
24C>
25C> <b>Program history log:</b>
26C> | Date | Programmer | Comments |
27C> | -----|------------|----------|
28C> | 2002-05-14 | J. Woollen | Original author |
29C> | 2005-03-09 | J. Ator | Modified to use cmpmsg() and writsb() |
30C>
31 SUBROUTINE writcp(LUNIT)
32
33 CALL cmpmsg('Y')
34
35 CALL writsb(lunit)
36
37 CALL cmpmsg('N')
38
39 RETURN
40 END
subroutine cmpmsg(CF)
This subroutine is used to specify whether BUFR messages output by future calls to message-writing su...
Definition: cmpmsg.f:42
subroutine writcp(LUNIT)
This subroutine is similar to subroutine writsb(), except that when the subset is encoded and packed ...
Definition: writcp.f:32
subroutine writsb(LUNIT)
This subroutine writes a complete data subset into a BUFR message, for eventual output to logical uni...
Definition: writsb.f:53