NCEPLIBS-bufr  12.0.1
rsvfvm.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Process a "following value" mnemonic.
3 C>
4 C> @author Woollen @date 1994-01-06
5 
6 C> This subroutine steps through the "following value"
7 C> mnemonic NEM1 and, for each "." character encountered (except for
8 C> the initial one), overwrites it with the next corresponding
9 C> character from NEM2.
10 C>
11 C> For example:
12 C> <pre>
13 C> if, on input: NEM1 = ".DTH...."
14 C> NEM2 = "MXTM "
15 C> then, on output: NEM1 = ".DTHMXTM"
16 C> </pre>
17 C>
18 C> @param[inout] NEM1 - character*8:
19 C> - on input, a "following value" mnemonic.
20 C> - on output, a copy of input NEM1 with all "." characters (except the
21 C> initial one) overwritten with corresponding characters from NEM2.
22 C> @param[in] NEM2 - character*8: mnemonic immediately following NEM1
23 C> within DX BUFR table.
24 C>
25 C> @author Woollen @date 1994-01-06
26  SUBROUTINE rsvfvm(NEM1,NEM2)
27 
28 
29 
30  CHARACTER*8 NEM1,NEM2
31 
32  DO i=1,len(nem1)
33  IF(i.EQ.1) THEN
34 
35 C Skip initial "." and initialize J.
36 
37  j = 1
38  ELSE
39  IF(nem1(i:i).EQ.'.') THEN
40  nem1(i:i) = nem2(j:j)
41  j = j+1
42  ENDIF
43  ENDIF
44  ENDDO
45 
46  RETURN
47  END
subroutine rsvfvm(NEM1, NEM2)
This subroutine steps through the "following value" mnemonic NEM1 and, for each "....
Definition: rsvfvm.f:27