NCEPLIBS-bufr
11.5.0
|
Copy a BUFR message. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine | copymg (LUNIN, LUNOT) |
This subroutine copies a BUFR message from one Fortran logical unit to another. More... | |
Copy a BUFR message.
Definition in file copymg.f.
subroutine copymg | ( | LUNIN, | |
LUNOT | |||
) |
This subroutine copies a BUFR message from one Fortran logical unit to another.
This subroutine is similar to subroutine cpymem(), except that it copies a BUFR message from one Fortran logical unit to another, whereas cpymem() copies a BUFR message from internal arrays in memory to a specified Fortran logical unit.
[in] | LUNIN | - integer: Fortran logical unit number for source BUFR file |
[in] | LUNOT | - integer: Fortran logical unit number for target BUFR file |
Logical unit LUNIN should have already been opened for input operations via a previous call to subroutine openbf(), and a BUFR message should have already been read into internal arrays for LUNIN via a previous call to one of the message-reading subroutines.
Logical unit LUNOT should have already been opened for output operations via a previous call to subroutine openbf(), but there should not be any BUFR message already open for output within the internal arrays for LUNOT via a previous call to one of the BUFRLIB message-writing subroutines.
The DX BUFR Table information associated with each of the logical units LUNIN and LUNOT must contain identical definitions for the type of BUFR message to be copied from LUNIN to LUNOT.
Program history log:
Definition at line 59 of file copymg.f.
References bort(), iok2cpy(), iupbs01(), msgwrt(), nemtba(), and status().
Referenced by split_by_subset().