NCEPLIBS-bufr 11.7.1
writcp.f File Reference

Write a data subset into a BUFR message using compression. More...

Go to the source code of this file.

Functions/Subroutines

subroutine writcp (LUNIT)
 This subroutine is similar to subroutine writsb(), except that when the subset is encoded and packed into the current message for the BUFR file associated with logical unit LUNIT, it is packed using compression as prescribed within the official WMO BUFR regulations. More...
 

Detailed Description

Write a data subset into a BUFR message using compression.

Definition in file writcp.f.

Function/Subroutine Documentation

◆ writcp()

subroutine writcp (   LUNIT)

This subroutine is similar to subroutine writsb(), except that when the subset is encoded and packed into the current message for the BUFR file associated with logical unit LUNIT, it is packed using compression as prescribed within the official WMO BUFR regulations.

Author
J. Woollen
Date
2002-05-14
Parameters
[in]LUNIT– integer: Fortran logical unit number for BUFR file
Remarks
  • This subroutine activates compression via an internal call to subroutine cmpmsg(), followed by an internal call to subroutine writsb(), followed by a second internal call to subroutine cmpmsg() to deactivate compression. For this reason, most application programs which write compressed BUFR messages now call subroutines cmpmsg() and writsb() directly; however, this subroutine is still supported within the BUFRLIB software for backwards-compatibility with certain legacy application programs.

Program history log:

Date Programmer Comments
2002-05-14 J. Woollen Original author
2005-03-09 J. Ator Modified to use cmpmsg() and writsb()

Definition at line 31 of file writcp.f.

References cmpmsg(), and writsb().