NCEPLIBS-bufr  11.7.0
 All Data Structures Files Functions Variables Pages
lmsg.f
Go to the documentation of this file.
1 C> @file
2 C> @author WOOLLEN @date 1994-01-06
3 
4 C> GIVEN A CHARACTER STRING CONTAINING SECTION ZERO FROM A
5 C> BUFR MESSAGE, THIS FUNCTION DETERMINES A COUNT OF MACHINE WORDS
6 C> (I.E. INTEGER ARRAY MEMBERS) THAT WILL HOLD THE ENTIRE MESSAGE.
7 C> NOTE THAT THIS COUNT MAY BE GREATER THAN THE MINIMUM NUMBER
8 C> OF WORDS REQUIRED TO HOLD THE MESSAGE.
9 C>
10 C> PROGRAM HISTORY LOG:
11 C> 1994-01-06 J. WOOLLEN -- ORIGINAL AUTHOR
12 C> 2003-11-04 S. BENDER -- ADDED REMARKS/BUFRLIB ROUTINE
13 C> INTERDEPENDENCIES
14 C> 2003-11-04 D. KEYSER -- UNIFIED/PORTABLE FOR WRF; ADDED
15 C> DOCUMENTATION (INCLUDING HISTORY)
16 C> 2004-08-18 J. ATOR -- IMPROVED DOCUMENTATION
17 C> 2005-11-29 J. ATOR -- USE NMWRD
18 C>
19 C> USAGE: LMSG (SEC0)
20 C> INPUT ARGUMENT LIST:
21 C> SEC0 - CHARACTER*8: PACKED BUFR MESSAGE SECTION ZERO
22 C>
23 C> OUTPUT ARGUMENT LIST:
24 C> LMSG - INTEGER: BUFR MESSAGE LENGTH (IN MACHINE WORDS)
25 C>
26 C> REMARKS:
27 C> THIS ROUTINE CALLS: NMWRD
28 C> THIS ROUTINE IS CALLED BY: READERME
29 C> Also called by application programs.
30 C>
31  FUNCTION lmsg(SEC0)
32 
33 
34 
35  CHARACTER*8 sec0,csec0
36  dimension msec0(2)
37 
38  equivalence(msec0,csec0)
39 
40 C-----------------------------------------------------------------------
41 C-----------------------------------------------------------------------
42 
43  csec0 = sec0
44  lmsg = nmwrd(msec0)
45 
46 C EXIT
47 C ----
48 
49  RETURN
50  END
function lmsg(SEC0)
GIVEN A CHARACTER STRING CONTAINING SECTION ZERO FROM A BUFR MESSAGE, THIS FUNCTION DETERMINES A COUN...
Definition: lmsg.f:31
function nmwrd(MBAY)
GIVEN AN INTEGER ARRAY CONTAINING SECTION ZERO FROM A BUFR MESSAGE, THIS FUNCTION DETERMINES A COUNT ...
Definition: nmwrd.f:27