NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3fc05.f File Reference

Earth U,V wind components to dir and spd. More...

Go to the source code of this file.

Functions/Subroutines

subroutine w3fc05 (u, v, dir, spd)
 Given the true (Earth oriented) wind components compute the wind direction and speed.
 

Detailed Description

Earth U,V wind components to dir and spd.

Author
John Stackpole
Date
1981-12-30

Definition in file w3fc05.f.

Function/Subroutine Documentation

◆ w3fc05()

subroutine w3fc05 ( real  u,
real  v,
real  dir,
real  spd 
)

Given the true (Earth oriented) wind components compute the wind direction and speed.

Input winds at the pole are assumed to follow the WMO conventions, with the output direction computed in accordance with WMO standards for reporting winds at the pole. (see office note 241 for WMO definition.)

Program history log:

  • John Stackpole 1981-12-30
  • P. Chase 1988-10-19 Allow output values to overlay input
  • Ralph Jones 1991-03-05 Changes for cray cft77 fortran
  • Dennis Keyser 1992-10-21 Added 1.e-3 to direction to allow truncation to nearest whole degree to be correct (keeps agreement between cray & nas versions)
Parameters
[in]UREAL Earth-oriented U-component.
[in]VREAL Earth-oriented V-component.
[out]DIRREAL Wind direction, degrees. Values will be from 0 to 360 inclusive.
[out]SPDREAL Wind speed in same units as input.
Note
If speed is less than 1e-10 then direction will be set to zero.
Author
John Stackpole
Date
1981-12-30

Definition at line 28 of file w3fc05.f.