NCEPLIBS-bufr  12.0.1
cmpmsg.f File Reference

Specify the use of compression when writing BUFR messages. More...

Go to the source code of this file.

Functions/Subroutines

subroutine cmpmsg (CF)
 Specify the use of compression when writing BUFR messages. More...
 

Detailed Description

Specify the use of compression when writing BUFR messages.

Author
J. Ator
Date
2005-03-09

Definition in file cmpmsg.f.

Function/Subroutine Documentation

◆ cmpmsg()

subroutine cmpmsg ( character*1  CF)

Specify the use of compression when writing BUFR messages.

This subroutine is used to specify whether BUFR messages output by future calls to message-writing subroutines and subset-writing subroutines are to be compressed.

This subroutine can be called at any time after the first call to subroutine openbf(), and the specified value for CF will remain in effect for all future calls to message-writing subroutines and subset-writing subroutines for all Fortran logical units that are open for output within the application program, unless a subsequent call is made to this subroutine to reset the value of CF again. If this subroutine is never called, a default value of 'N' is used for CF, as set within subroutine bfrini().

When compression is activated, it is implemented using the algorithm for data subset compression prescribed within the official WMO BUFR regulations. Compression is most useful when the data subsets to be compressed are devoid of any delayed replication, and when there is minimal variation of corresponding data values among different data subsets within the same BUFR message. Otherwise, compression may provide little to no benefit, and which is why it is not activated by default.

Parameters
[in]CF- character*1: Flag indicating whether future BUFR output messages are to be compressed
  • 'N' = No (the default)
  • 'Y' = Yes
Author
J. Ator
Date
2005-03-09

Definition at line 38 of file cmpmsg.f.

References bort(), and capit().

Referenced by copysb(), bufr_c2f_interface::iupb_c(), and writcp().