NCEPLIBS-w3emc  2.11.0
w3fi20.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Cut a 65 x 65 grid to a nmc 1977 point grid.
3 C> @author Ralph Jones @date 1984-07-02
4 
5 C> Extracts the NMC 1977 point octagon grid points out of
6 C> a 65x65 (4225 point) array.
7 C>
8 C> Program history log:
9 C> - Ralph Jones 1973-06-15
10 C> - Ralph Jones 1984-07-02 Convert to vs fortran
11 C> - Ralph Jones 1989-02-02 Convert to microsoft fortran 4.10
12 C> - Ralph Jones 1990-08-22 Convert to sun fortran 1.3
13 C> - Ralph Jones 1991-03-29 Convert to silicongraphics fortran
14 C> - Ralph Jones 1993-03-29 Add save statement
15 C>
16 C> @param[in] A REAL*4 (65 x 65 grid, 4225 point) array
17 C> grid is office note 84 type 27 or 1b hex.
18 C> @param[out] B 1977 point array (octagon) office note 84 type
19 C> 0 or hex 0.
20 C>
21 C> @note Arrays A and B may be the same array or be equivalenced,
22 C> in which case the first 1977 words of 'A' are written over.
23 C>
24 C> @author Ralph Jones @date 1984-07-02
25  SUBROUTINE w3fi20(A,B)
26 C
27  REAL A(*)
28  REAL B(*)
29 C
30  INTEGER RB
31  INTEGER LBR(51)
32  INTEGER RBR(51)
33 C
34  SAVE
35 C
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/
40 C
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/
45 C
46  n = 0
47 C
48  DO 200 i = 1,51
49  lb = lbr(i)
50  rb = rbr(i)
51 C
52  DO 100 j = lb,rb
53  n = n + 1
54  b(n) = a(j)
55  100 CONTINUE
56 C
57  200 CONTINUE
58 C
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