NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3fc08.f
Go to the documentation of this file.
1C> @file
2C> @brief U-V Comps from Earth to north hem grid.
3C> @author John Stackpole @date 1981-12-30
4
5C> Given the Earth-oriented wind components on a northern
6C> hemisphere polar stereographic grid point, compute the grid-
7C> oriented components at that point. Input wind components at the
8C> north pole point are assumed to conform to
9C> the 'WMO' standards for reporting winds at the north pole, with
10C> the output components computed relative to the X-Y axes on the
11C> grid. (see office note 241 for WMO definition.)
12C>
13C> Program history log:
14C> - John Stackpole 1981-12-30
15C> - P. Chase 1988-10-18 Let output variables overlay input.
16C> - Ralph Jones 1991-03-06 Change to cray cft77 fortran.
17C>
18C> @param[in] FFID REAL I-displacement from point to north pole in
19C> grid units.
20C> @param[in] FFJD REAL J-displacement from point to north pole in
21C> grid units.
22C> @param[in] FU REAL Earth-oriented u-component, positive from west.
23C> @param[in] FV REAL Earth-oriented v-component, positive from east.
24C> @param[out] FGU REAL Grid-oriented u-component. May reference
25C> same location as FU.
26C> @param[out] FGV REAL Grid-oriented v-component. May reference
27C> same location as FV.
28C>
29C> @note FFID and FFJD may be calculated as followS.....
30C> FFID = real(ip - i)
31C> FFJD = real(jp - j)
32C> where (ip, jp) are the grid coordinates of the north pole and
33C> (i,j) are the grid coordinates of the point.
34C>
35C> @author John Stackpole @date 1981-12-30
36 SUBROUTINE w3fc08(FFID, FFJD, FU, FV, FGU, FGV)
37C
38 SAVE
39C
40 DATA cos280/ 0.1736482 /
41 DATA sin280/ -0.9848078 /
42C
43C COS280 AND SIN280 ARE FOR WIND AT POLE
44C (USED FOR CO-ORDINATE ROTATION TO GRID ORIENTATION)
45C
46 dfp = sqrt(ffid * ffid + ffjd * ffjd)
47 IF (dfp .EQ. 0.) THEN
48 xfgu = -(fu * cos280 + fv * sin280)
49 fgv = -(fv * cos280 - fu * sin280)
50 ELSE
51 xfgu = (fu * ffjd + fv * ffid) / dfp
52 fgv = (fv * ffjd - fu * ffid) / dfp
53 ENDIF
54 fgu = xfgu
55 RETURN
56 END
subroutine w3fc08(ffid, ffjd, fu, fv, fgu, fgv)
Given the Earth-oriented wind components on a northern hemisphere polar stereographic grid point,...
Definition w3fc08.f:37