NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3fc06.f
Go to the documentation of this file.
1C> @file
2C> @brief Wind dir and spd to Earth U,V components.
3C> @author John Stackpole @date 1981-12-30
4
5C> Given the wind direction and speed,
6C> compute Earth-oriented (true) wind components.
7C> Input direction at the pole point
8C> must be consistent with WMO conventions, and output components
9C> will follow those conventions.
10C> (See office note 241 for WMO definition.)
11C>
12C> Program history log:
13C> - John Stackpole 1981-12-30
14C> - Ralph Jones 1991-03-06 Change to cray cft77 fortran.
15C>
16C> @param[in] DIR REAL*4 Wind direction, degrees
17C> @param[in] SPD REAL*4 Wind speed, any units
18C> @param[out] U REAL*4 Earth-oriented U-component.
19C> @param[out] V REAL*4 Earth-oriented V-component.
20C>
21C> @note This code will not vectorize on cray, you could
22C> put the four lines in your code with a couple of
23C> do loops.
24C>
25C> @author John Stackpole @date 1981-12-30
26 SUBROUTINE w3fc06(DIR,SPD,U,V)
27C
28 xspd = -spd
29 dirl = 0.0174533 * dir
30 u = xspd * sin(dirl)
31 v = xspd * cos(dirl)
32C
33 RETURN
34 END
subroutine w3fc06(dir, spd, u, v)
Given the wind direction and speed, compute Earth-oriented (true) wind components.
Definition w3fc06.f:27