NCEPLIBS-bufr 11.7.1
All Data Structures Namespaces Files Functions Variables Pages
rsvfvm.f
Go to the documentation of this file.
1C> @file
2C> @author WOOLLEN @date 1994-01-06
3
4C> THIS SUBROUTINE STEPS THROUGH THE "FOLLOWING VALUE"
5C> MNEMONIC NEM1 AND, FOR EACH "." CHARACTER ENCOUNTERED (EXCEPT FOR
6C> THE INITIAL ONE), OVERWRITES IT WITH THE NEXT CORRESPONDING
7C> CHARACTER FROM NEM2 (SEE REMARKS).
8C>
9C> PROGRAM HISTORY LOG:
10C> 1994-01-06 J. WOOLLEN -- ORIGINAL AUTHOR
11C> 2003-11-04 J. ATOR -- ADDED DOCUMENTATION
12C> 2003-11-04 S. BENDER -- ADDED REMARKS/BUFRLIB ROUTINE
13C> INTERDEPENDENCIES
14C> 2003-11-04 D. KEYSER -- UNIFIED/PORTABLE FOR WRF; ADDED HISTORY
15C> DOCUMENTATION
16C>
17C> USAGE: CALL RSVFVM (NEM1, NEM2)
18C> INPUT ARGUMENT LIST:
19C> NEM1 - CHARACTER*8: "FOLLOWING VALUE" MNEMONIC
20C> NEM2 - CHARACTER*8: MNEMONIC IMMEDIATELY FOLLOWING NEM1
21C> WITHIN USER DICTIONARY TABLE
22C>
23C> OUTPUT ARGUMENT LIST:
24C> NEM1 - CHARACTER*8: COPY OF INPUT NEM1 WITH ALL "."
25C> CHARACTERS (EXCEPT INITIAL ONE) OVERWRITTEN WITH
26C> CORRESPONDING CHARACTERS FROM NEM2
27C>
28C> REMARKS:
29C> FOR EXAMPLE:
30C> if, on input: NEM1 = ".DTH...."
31C> NEM2 = "MXTM "
32C> then, on output: NEM1 = ".DTHMXTM"
33C>
34C>
35C> THIS ROUTINE CALLS: None
36C> THIS ROUTINE IS CALLED BY: NEMTBD SEQSDX
37C> Normally not called by any application
38C> programs.
39C>
40 SUBROUTINE rsvfvm(NEM1,NEM2)
41
42
43
44 CHARACTER*8 NEM1,NEM2
45
46 DO i=1,len(nem1)
47 IF(i.EQ.1) THEN
48
49C Skip initial "." and initialize J.
50
51 j = 1
52 ELSE
53 IF(nem1(i:i).EQ.'.') THEN
54 nem1(i:i) = nem2(j:j)
55 j = j+1
56 ENDIF
57 ENDIF
58 ENDDO
59
60 RETURN
61 END
subroutine rsvfvm(NEM1, NEM2)
THIS SUBROUTINE STEPS THROUGH THE "FOLLOWING VALUE" MNEMONIC NEM1 AND, FOR EACH "....
Definition: rsvfvm.f:41