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