NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3fc07.f
Go to the documentation of this file.
1C> @file
2C> @brief Grid U-V to Earth U-V in north hem.
3C> @author John Stackpole @date 1981-12-30
4
5C> Given the grid-oriented wind components on a northern
6C> hemisphere polar stereographic grid point, compute the Earth-
7C> oriented wind components at that point. If the input winds
8C> are at the north pole, the output components will be made
9C> consistent with the WMO standards for reporting winds at the
10C> north pole. (see office note 241 for WMO definition.)
11C>
12C> Program history log:
13C> - John Stackpole 1981-12-30
14C> - P. Chase 1988-10-13 Allow input and output to be the same
15C> - Ralph Jones 1991-03-06 Change to cray cft77 fortran
16C>
17C> @param[in] FFID REAL I-displacement from point to north pole
18C> @param[in] FFJD REAL J-displacement from point to north pole
19C> @param[in] FGV REAL Grid-oriented V-component
20C> @param[in] FGU REAL Grid-oriented U-component
21C> @param[out] FU REAL Earth-oriented U-component, positive from west
22C> may reference the same location as FGU.
23C> @param[out] FV REAL Earth-oriented V-component, positive from south
24C> may reference the same location as FGV.
25C>
26C> @note Calculate FFID and FFJD as follows...
27C> FFID = real(ip - i)
28C> FFJD = real(jp - j)
29C> where (ip,jp) is the grid coordinates of the north pole and
30C> (i,j) is the grid coordinates of the point where FGU and FGV
31C> occur. See w3fc11 for a southern hemisphere companion subroutine.
32C>
33C> @author John Stackpole @date 1981-12-30
34 SUBROUTINE w3fc07(FFID, FFJD, FGU, FGV, FU, FV)
35C
36 SAVE
37C
38 DATA cos80 / 0.1736482 /
39 DATA sin80 / 0.9848078 /
40
41C COS80 AND SIN80 ARE FOR WIND AT POLE
42C (USED FOR CO-ORDINATE ROTATION TO EARTH ORIENTATION)
43
44 dfp = sqrt(ffid * ffid + ffjd * ffjd)
45 IF (dfp .EQ. 0.0) THEN
46 xfu = -(fgu * cos80 + fgv * sin80)
47 fv = -(fgv * cos80 - fgu * sin80)
48 ELSE
49 xfu = (fgu * ffjd - fgv * ffid) / dfp
50 fv = (fgu * ffid + fgv * ffjd) / dfp
51 ENDIF
52 fu = xfu
53 RETURN
54 END
subroutine w3fc07(ffid, ffjd, fgu, fgv, fu, fv)
Given the grid-oriented wind components on a northern hemisphere polar stereographic grid point,...
Definition w3fc07.f:35