NCEPLIBS-w3emc  2.11.0
w3fc07.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Grid U-V to Earth U-V in north hem.
3 C> @author John Stackpole @date 1981-12-30
4 
5 C> Given the grid-oriented wind components on a northern
6 C> hemisphere polar stereographic grid point, compute the Earth-
7 C> oriented wind components at that point. If the input winds
8 C> are at the north pole, the output components will be made
9 C> consistent with the WMO standards for reporting winds at the
10 C> north pole. (see office note 241 for WMO definition.)
11 C>
12 C> Program history log:
13 C> - John Stackpole 1981-12-30
14 C> - P. Chase 1988-10-13 Allow input and output to be the same
15 C> - Ralph Jones 1991-03-06 Change to cray cft77 fortran
16 C>
17 C> @param[in] FFID REAL I-displacement from point to north pole
18 C> @param[in] FFJD REAL J-displacement from point to north pole
19 C> @param[in] FGV REAL Grid-oriented V-component
20 C> @param[in] FGU REAL Grid-oriented U-component
21 C> @param[out] FU REAL Earth-oriented U-component, positive from west
22 C> may reference the same location as FGU.
23 C> @param[out] FV REAL Earth-oriented V-component, positive from south
24 C> may reference the same location as FGV.
25 C>
26 C> @note Calculate FFID and FFJD as follows...
27 C> FFID = real(ip - i)
28 C> FFJD = real(jp - j)
29 C> where (ip,jp) is the grid coordinates of the north pole and
30 C> (i,j) is the grid coordinates of the point where FGU and FGV
31 C> occur. See w3fc11 for a southern hemisphere companion subroutine.
32 C>
33 C> @author John Stackpole @date 1981-12-30
34  SUBROUTINE w3fc07(FFID, FFJD, FGU, FGV, FU, FV)
35 C
36  SAVE
37 C
38  DATA cos80 / 0.1736482 /
39  DATA sin80 / 0.9848078 /
40 
41 C COS80 AND SIN80 ARE FOR WIND AT POLE
42 C (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