NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3fb00.f
Go to the documentation of this file.
1C> @file
2C> @brief Convert latitude, longitude to i,j
3C> @author A. Heermann @date 1969-08-01
4
5C> Converts the coordinates of a location on earth from the
6C> natural coordinate system of latitude/longitude to the grid (i,j)
7C> coordinate system overlaid on the polar stereographic map pro-
8C> jection true at 60 n. a preferable, more flexible subroutine to
9C> use is w3fb04(). w3fb00() is the reverse of w3fb01().
10C>
11C> Program history log:
12C> - A. Heermann 1969-08-01
13C> - Ralph Jones 1990-08-31 Convert to cray cft77 fortran
14C>
15C> @param[in] ALAT Latitude in deg. (-20.0 (s. hemis)) alat) 90.0).
16C> @param[in] ALONG West longitude in degrees.
17C> @param[in] XMESHL Mesh length of grid in kilometers at 60n.
18C> @param[out] XI I of the point relative to north pole.
19C> @param[out] XJ J of the point relative to north pole.
20C>
21C> @note The grid used in this subroutine has its origin (i=0,j=0)
22C> at the north pole, so if the user's grid has its origin at a
23C> point other than the north pole, a translation is required to
24C> get i and j. The subroutine grid is oriented so that longitude
25C> 80w is parallel to the gridlines of i=constant. The radius of
26C> the earth is taken to be 6371.2 km. All parameters in the call statement
27C> must be real this code will not vectorize on a cray. You will have put
28C> it line to vectorize it.
29C>
30C> @author A. Heermann @date 1969-08-01
31 SUBROUTINE w3fb00(ALAT,ALONG,XMESHL,XI,XJ)
32C
33 DATA radpd /.01745329/
34 DATA earthr/6371.2/
35C
36 re = (earthr * 1.86603) / xmeshl
37 xlat = alat * radpd
38 sinl = sin(xlat)
39 wlong = (along + 100.0) * radpd
40 r = (re * cos(xlat)) / (1. + sinl)
41 xi = r * sin(wlong)
42 xj = r * cos(wlong)
43 RETURN
44 END
subroutine w3fb00(alat, along, xmeshl, xi, xj)
Converts the coordinates of a location on earth from the natural coordinate system of latitude/longit...
Definition w3fb00.f:32