NCEPLIBS-bufr 11.7.1
nmwrd.f
Go to the documentation of this file.
1C> @file
2C> @author ATOR @date 2005-11-29
3
4C> GIVEN AN INTEGER ARRAY CONTAINING SECTION ZERO FROM A
5C> BUFR MESSAGE, THIS FUNCTION DETERMINES A COUNT OF MACHINE WORDS
6C> (I.E. INTEGER ARRAY MEMBERS) THAT WILL HOLD THE ENTIRE MESSAGE.
7C> NOTE THAT THIS COUNT MAY BE GREATER THAN THE MINIMUM NUMBER
8C> OF WORDS REQUIRED TO HOLD THE MESSAGE.
9C>
10C> PROGRAM HISTORY LOG:
11C> 2005-11-29 J. ATOR -- ORIGINAL AUTHOR
12C>
13C> USAGE: NMWRD (MBAY)
14C> INPUT ARGUMENT LIST:
15C> MBAY - INTEGER: *-WORD ARRAY CONTAINING SECTION ZERO
16C> FROM A BUFR MESSAGE
17C>
18C> OUTPUT ARGUMENT LIST:
19C> NMWRD - INTEGER: BUFR MESSAGE LENGTH (IN MACHINE WORDS)
20C>
21C> REMARKS:
22C> THIS ROUTINE CALLS: IUPBS01
23C> THIS ROUTINE IS CALLED BY: CNVED4 CPDXMM LMSG MSGWRT
24C> PADMSG UFBMEM UFBMEX
25C> Also called by application programs.
26C>
27 FUNCTION nmwrd(MBAY)
28
29
30
31 COMMON /hrdwrd/ nbytw,nbitw,iord(8)
32
33 dimension mbay(*)
34
35C-----------------------------------------------------------------------
36C-----------------------------------------------------------------------
37
38 lenm = iupbs01(mbay,'LENM')
39 IF(lenm.EQ.0) THEN
40 nmwrd = 0
41 ELSE
42 nmwrd = ((lenm/8)+1)*(8/nbytw)
43 ENDIF
44
45 RETURN
46 END
function iupbs01(MBAY, S01MNEM)
This function returns a specified value from within Section 0 or Section 1 of a BUFR message.
Definition: iupbs01.f:74
function nmwrd(MBAY)
GIVEN AN INTEGER ARRAY CONTAINING SECTION ZERO FROM A BUFR MESSAGE, THIS FUNCTION DETERMINES A COUNT ...
Definition: nmwrd.f:28