NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3fi20.f
Go to the documentation of this file.
1C> @file
2C> @brief Cut a 65 x 65 grid to a nmc 1977 point grid.
3C> @author Ralph Jones @date 1984-07-02
4
5C> Extracts the NMC 1977 point octagon grid points out of
6C> a 65x65 (4225 point) array.
7C>
8C> Program history log:
9C> - Ralph Jones 1973-06-15
10C> - Ralph Jones 1984-07-02 Convert to vs fortran
11C> - Ralph Jones 1989-02-02 Convert to microsoft fortran 4.10
12C> - Ralph Jones 1990-08-22 Convert to sun fortran 1.3
13C> - Ralph Jones 1991-03-29 Convert to silicongraphics fortran
14C> - Ralph Jones 1993-03-29 Add save statement
15C>
16C> @param[in] A REAL*4 (65 x 65 grid, 4225 point) array
17C> grid is office note 84 type 27 or 1b hex.
18C> @param[out] B 1977 point array (octagon) office note 84 type
19C> 0 or hex 0.
20C>
21C> @note Arrays A and B may be the same array or be equivalenced,
22C> in which case the first 1977 words of 'A' are written over.
23C>
24C> @author Ralph Jones @date 1984-07-02
25 SUBROUTINE w3fi20(A,B)
26C
27 REAL A(*)
28 REAL B(*)
29C
30 INTEGER RB
31 INTEGER LBR(51)
32 INTEGER RBR(51)
33C
34 SAVE
35C
36 DATA lbr/479,543,607,671,735,799,863,927,991,1055,1119,1183,1247,
37 &1311,1375,1440,1505,1570,1635,1700,1765,1830,1895,1960,2025,2090,
38 &2155,2220,2285,2350,2415,2480,2545,2610,2675,2740,2805,2871,2937,
39 &3003,3069,3135,3201,3267,3333,3399,3465,3531,3597,3663,3729/
40C
41 DATA rbr/497,563,629,695,761,827,893,959,1025,1091,1157,1223,1289,
42 &1355,1421,1486,1551,1616,1681,1746,1811,1876,1941,2006,2071,2136,
43 &2201,2266,2331,2396,2461,2526,2591,2656,2721,2786,2851,2915,2979,
44 &3043,3107,3171,3235,3299,3363,3427,3491,3555,3619,3683,3747/
45C
46 n = 0
47C
48 DO 200 i = 1,51
49 lb = lbr(i)
50 rb = rbr(i)
51C
52 DO 100 j = lb,rb
53 n = n + 1
54 b(n) = a(j)
55 100 CONTINUE
56C
57 200 CONTINUE
58C
59 RETURN
60 END
subroutine w3fi20(a, b)
Extracts the NMC 1977 point octagon grid points out of a 65x65 (4225 point) array.
Definition w3fi20.f:26