NCEPLIBS-w3emc  2.11.0
w3fi19.f
Go to the documentation of this file.
1 C> @file
2 C> @brief NMC Rectangle boundary finding subroutine.
3 C> @author James Howcroft @date 1973-10-15
4 
5 C> Relates the I,J coordinate point in a 65x65 grid-point
6 C> array as being either inside, outside, or on the boundary of the
7 C> 53x57 NMC rectangle centered in the 65x65 array.
8 C>
9 C> Program history log:
10 C> - James Howcroft 1973-10-15
11 C> - Ralph Jones 1984-07-02 Convert to fortran 77.
12 C> - Ralph Jones 1989-02-02 Convert to microsoft fortran 4.10.
13 C> - Ralph Jones 1990-06-12 Convert to sun fortran 1.3.
14 C> - Ralph Jones 1991-03-16 Convert to silicongraphics 3.3 fortran 77.
15 C> - Ralph Jones 1993-03-29 Add save statement.
16 C>
17 C> @param[in] I Coordinate identification of a point in the 65x65 array.
18 C> @param[in] J Coordinate identification of a point in the 65x65 array.
19 C> @param[out] NW Integer return code.
20 C>
21 C> Exit states:
22 C> - NW = -1 Point is outside the rectangle.
23 C> - NW = 0 Point is on the rectangle boundary.
24 C> - NW = +1 Point is inside the rectangle.
25 C>
26 C> @author James Howcroft @date 1973-10-15
27  SUBROUTINE w3fi19(I,J,NW)
28 C
29  SAVE
30 C
31  IF (i.LT.7.OR.i.GT.59.OR.j.LT.5.OR.j.GT.61) GO TO 10
32  IF (i.EQ.7.OR.i.EQ.59.OR.j.EQ.5.OR.j.EQ.61) GO TO 20
33  nw = 1
34  RETURN
35 C
36  10 CONTINUE
37  nw = -1
38  RETURN
39 C
40  20 CONTINUE
41  nw = 0
42  RETURN
43  END
subroutine w3fi19(I, J, NW)
Relates the I,J coordinate point in a 65x65 grid-point array as being either inside,...
Definition: w3fi19.f:28